简体   繁体   English

Iphone7s景观媒体查询

[英]Iphone7s Landscape Media Query

I am facing an issue in responsiveness of iPhone 7s portrait and landscape mode. 我在iPhone 7s 纵向横向模式的响应能力方面面临一个问题。 I didn't found any specific media query on the internet so far. 到目前为止,我在互联网上找不到任何特定的媒体查询。 I have picked some media queries from Sitephen Media Queries . 我从Sitephen媒体查询中选择了一些媒体查询 It worked well on Chrome Responsiveness checker. 在Chrome响应度检查器上运行良好。 But when I am checking it on iPhone 7s(Mobile). 但是当我在iPhone 7s(Mobile)上检查它时。 It is not working. 它不起作用。

Can someone help me out? 有人可以帮我吗? Any help will be Appreciated. 任何帮助将不胜感激。

Be specific and this might help you. 要具体,这可能会对您有所帮助。

/* ----------- iPhone 6, 6S, 7, 7S and 8 ----------- */

    /* Portrait and Landscape */
    @media only screen 
      and (min-device-width: 375px) 
      and (max-device-width: 667px) 
      and (-webkit-min-device-pixel-ratio: 2) { 

    }

    /* Portrait */
    @media only screen 
      and (min-device-width: 375px) 
      and (max-device-width: 667px) 
      and (-webkit-min-device-pixel-ratio: 2)
      and (orientation: portrait) { 

    }

    /* Landscape */
    @media only screen 
      and (min-device-width: 375px) 
      and (max-device-width: 667px) 
      and (-webkit-min-device-pixel-ratio: 2)
      and (orientation: landscape) { 

    }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM