貌似 V2EX 移动端下 viewport 设置有问题?

2016-05-07 11:51:32 +08:00
 nealfeng
用 chrome 调试, console 里有提示:
The value "device-width;" for key "width" is invalid, and has been ignored.
(index):6 The value "1.0;" for key "initial-scale" was truncated to its numeric prefix.
(index):6 The value "1.0;" for key "maximum-scale" was truncated to its numeric prefix.
(index):6 Error parsing a meta element's content: ';' is not a valid key-value pair separator. Please use ',' instead.

对应页面源码这一行:
<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0" name="viewport" />

好像应该用 ‘,’ 而不是 ';'

比如这样:
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6065 次点击
所在节点    反馈
1 条回复
Livid
2016-05-07 12:10:38 +08:00
谢谢反馈。下次部署时会修正这个问题。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/276924

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX