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.
我在 JavaScript 中收到此错误:
视口参数值“设备宽度;” for key "width" 无效,已被忽略。注意 ';' 不是视口值中的分隔符。该列表应以逗号分隔。
我该如何解决?
我有同样的错误。奇怪的是,修复起来非常简单。只需更改逗号的分号,例如:
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=yes">