V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
nealfeng
V2EX  ›  反馈

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

  •  
  •   nealfeng · 2016-05-07 11:51:32 +08:00 · 6036 次点击
    这是一个创建于 2921 天前的主题,其中的信息可能已经有所发展或是发生改变。
    用 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">
    1 条回复    2016-05-07 12:10:38 +08:00
    Livid
        1
    Livid  
    MOD
       2016-05-07 12:10:38 +08:00
    谢谢反馈。下次部署时会修正这个问题。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   951 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 21:07 · PVG 05:07 · LAX 14:07 · JFK 17:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.