84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
写的第一个移动端页面,想在chrome上调试一下,模拟手机的时候成这样了 为什么?下面打印的75是获取屏幕的宽度想设置rem? 为什么是75? 模拟IP6不应该是IP6的宽吗? 是因为分辨率的原因吗?怎么解决?
可能我问题没有说清楚,补充一下:我用chrome调试移动端页面,html:{font-size:12px},页面文字为1.5rem,然后我用chrome模拟IP6结果就像图上边那样了- -?(如果不模拟手机单纯拉窄屏幕是可以正常显示的)
Thank you for the invitation. I feel that the viewport is not written, which causes the mobile and PC terminals to have abnormal px parsing
I don’t quite understand your question, but since it’s a resolution issue, I guess it’s because “the actual resolution of the phone ≠ the logical resolution of the web page”
Why is the logical resolution of iPhone 6 Plus 414x736?
Add <meta name=viewport ... to the head
<meta name=viewport ...
Thank you for the invitation. I feel that the viewport is not written, which causes the mobile and PC terminals to have abnormal px parsing
I don’t quite understand your question, but since it’s a resolution issue, I guess it’s because “the actual resolution of the phone ≠ the logical resolution of the web page”
Why is the logical resolution of iPhone 6 Plus 414x736?
Add
<meta name=viewport ...
to the head