开发者

@media only screen and (orientation:portrait){} not working in iOS Emulator?

@media only screen and (orientation:portrait){} not working in iOS Emulator? Any solution to make it work?

I'm using iOS emulator for ipad. and Emulator is in Portrait mode

But it's not taking whatever is written inside

@media only screen and (orientation:portrait){



}

@media only screen and (orientation:portrait){} not working in iOS Emulator?

Edit:开发者_如何学C I just tested with this link too http://www.webdesignerwall.com/demo/media-queries/ I think Simulator doesn't detect Media queries.

Edit 2: I also uploaded video here http://www.youtube.com/watch?v=1R_QEfRD9xc&feature=youtu.be


Open project with safari and enable a "Show Develop menu in menu bar". Open menu on Develop and select User Agent > iPad

Resize Window and @media only screen and (orientation:portrait){} now work

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜