开发者

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

开发者 https://www.devze.com 2023-03-22 11:59 出处:网络
@media only screen and (orientation:portrait){} not working in iOS Emulator? Any solution to make it work?

@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

精彩评论

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

关注公众号