How can I use meta viewport and CSS media queries to make the average 960px website look good on the iPhone and iPad?

前端 未结 4 667
失恋的感觉
失恋的感觉 2021-02-01 23:56

Question

I know there are a lot of questions on Stack Overflow about the meta viewport tag, but I can\'t find anyone asking what seems to be the most obvious and usefu

4条回答
  •  故里飘歌
    2021-02-02 00:35

    Combine a media query with zoom.

    @media only screen and (min-device-width:768px) and (max-device-width:1024px) and (orientation:portrait) {
        html {zoom:0.8;}
    }
    

提交回复
热议问题