Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的.html文件中有这一行:
.html
<meta name="viewport" content="initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
我在 Chrome 中收到了这个警告:
键“宽度”的视口参数值"100%"被截断为其数字前缀。
"100%"
如何解决?
这不应该是这样的吗
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
顺便说一句:
maximum-scale=1 user-scalable=no
通常被认为提供了较差的用户体验。