Media Queries - CSS only for iPhone landscape

后端 未结 4 2039
抹茶落季
抹茶落季 2021-02-01 22:59

Are the same methods used to write CSS only for iPhone in landscape mode?

4条回答
  •  渐次进展
    2021-02-01 23:18

    You could do this

    
    

    That forces the iPhone to render viewport the same as the device width.

    Then use this css to target the landscape mode, which is +320px wide

    @media screen and (min-width: 321px){
        //styles
    }
    

提交回复
热议问题