数值无法被CSS识别的HTML ID(HTML ID with numerical value not recognized by CSS)
这是div:
<div class='something' id='1'>
我在页面上的不同位置上获得了9个,因此在
.css
文件中我做了:div#1.something { code... }
事情是,它不会工作,我知道这是正确的选择,但我也尝试
div.something#1
,它也不能正常工作。 我认为ID是一个数字有问题,我应该改变它还是有办法?Here is the div:
<div class='something' id='1'>
I got 9 of them with different positions on page so in the
.css
file I do:div#1.something { code... }
And the thing is that it won't work, I know this is the proper selector but I have also tried
div.something#1
and it also doesn't work, as expected. I think there is something wrong with ID as a number, should I change it or there is a way?
原文:https://stackoverflow.com/questions/36458637
最满意答案
这似乎是错误的能力
capabilities.setCapability(“u_did”,“840384833537f40d011032eaaf20a53705a451ce”);
尝试使用“udid”键而不是“u_did”
见文档
It seems wrong capability
capabilities.setCapability("u_did", "840384833537f40d011032eaaf20a53705a451ce");
Try use "udid" key instead of "u_did"
See documentation
相关问答
更多-
ios实际设备上的Appium给出了sdk iphone模拟器错误(Appium on ios actual device gives sdk iphone simulator error)[2023-02-08]
这似乎是错误的能力 capabilities.setCapability(“u_did”,“840384833537f40d011032eaaf20a53705a451ce”); 尝试使用“udid”键而不是“u_did” 见文档 It seems wrong capability capabilities.setCapability("u_did", "840384833537f40d011032eaaf20a53705a451ce"); Try use "udid" key instead of "u_ ... -
Titanium iOS模拟器错误(Titanium iOS simulator Error)[2023-10-12]
我通过清理项目解决了这个问题。 Project -> Clean.. I solved this issue by cleaning the project. Project -> Clean.. -
屏幕上的像素数/英寸远远低于实际设备上的像素数。 The pixels/inch on your screen is much lower than it is on an actual device.
-
降级Appcelerator已经解决了这个问题。 Downgrading the Appcelerator has solved the issue.
-
使用您的开发人员ID和密码登录到http://developer.apple.com/iphone/ 。 然后: http://developer.apple.com/iphone/manage/team/index.action并建立你的团队。 http://developer.apple.com/iphone/manage/certificates/team/index.action创建您的证书 下载刚刚创建的证书并双击它运行Keychain Access并安装它。 http://developer.a ...
-
这是不可能的。 iOS模拟器甚至不使用相同的架构(它是针对英特尔芯片组而不是ARM而编译的),因此您不能(至少在当前的版本中)执行此操作。 在类似的基础上,仪器内的性能信息仅在设备上运行时才有意义。 This isn't possible. The iOS simulator doesn't even use the same architecture (it's compiled for the Intel chipset as opposed to ARM), hence you can't (at l ...
-
iOS 7 SDK中的iOS模拟器(iOS Simulator in iOS 7 SDK)[2022-03-15]
iOS7仅适用于iPhone 4+,这意味着只有视网膜显示,所以能够在非视网膜模拟器上测试iOS7是没有意义的。 我注意到,如果我在我的Retina MBP上运行模拟器,我会得到皮肤模拟器,但如果我在常规的24英寸液晶显示器上运行它,它看起来没有皮肤,模拟器要大得多。 iOS7 is only available on iPhone 4+ which means only retina displays, so it wouldn't make sense to be able to test iOS7 o ... -
我认为这取决于图像格式。 在iPhone应用程序中使用PNG时,构建设备时的部分构建过程会通过pngcrush实用程序放置PNG图像,该实用程序可优化用于iPhone图形处理器的图像。 它与iPhone的图形处理器本身不处理alpha这一事实有关,因此它依赖于预乘的alpha值。 这可能是你看到的差异。 而你在模拟器中没有看到它的原因是模拟器使用Mac的grahics处理器,因此可以在PNG中原生地处理alpha,这意味着在构建过程中PNG不会被“压碎”。 我认为... I think it comes d ...
-
Appium试图在模拟器上启动应用程序,而不是真正的设备(Appium tries to launch app on simulator instead of real device)[2023-08-04]
添加“udid”功能并在那里输入你的设备。 capabilities.setCapability("deviceName", "phoneUDID"); Add "udid" capability and enter your device udid there. capabilities.setCapability("deviceName", "phoneUDID"); -
好的,这个谜团已经解决了。 青少年的父母可能能够联系。 事实证明,昨晚登录时我的青少年的iphone正在使用,它被设置为使用移动数据ON PURPOSE绕过我们网络上的内容过滤设置! 我今天没有意识到这一点的原因是因为FB应用程序似乎正在使用iphone(稍后仔细检查我发现只有一些缓存的内容),而我的mac设置为绕过内容过滤。 所以这就是为什么它在模拟器上工作但不在iphone上(当iphone被设置为使用wifi而不是移动数据时)。 所以FB错误是一个红色的鲱鱼。 我只是没有低头看那条路...... Ok ...