@media only屏幕和(orientation:portrait){}在iOS模拟器中不起作用?
问题描述:
@media only screen and (orientation:portrait){}
无法在iOS模拟器中使用?任何解决方案,使其工作?@media only屏幕和(orientation:portrait){}在iOS模拟器中不起作用?
我正在使用iOS模拟器的ipad。和仿真器是在人像模式
但它不采取任何里面写的
@media only screen and (orientation:portrait){
}
编辑:我只是用这个链接测试过http://www.webdesignerwall.com/demo/media-queries/我认为模拟器没有检测到媒体查询。
编辑2:我还上传视频在这里http://www.youtube.com/watch?v=1R_QEfRD9xc&feature=youtu.be
答
开放项目,Safari和启用“在菜单栏中显示开发菜单”。在开发和选择用户代理 打开菜单> iPad的
调整窗口大小和@media only screen and (orientation:portrait){}
现在的工作
+0
但我问的是模拟器 –
我在模拟器上测试,它工作得很好:http://www.w3.org/Style/CSS/Test /MediaQueries/20100726/media-queries-test.html – stephenhay