nealfeng
V2EX  ›  反馈

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

  •  
  •   nealfeng · May 7, 2016 · 6514 views
    This topic created in 3691 days ago, the information mentioned may be changed or developed.
    用 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 replies    2016-05-07 12:10:38 +08:00
    Livid
        1
    Livid  
    MOD
    PRO
       May 7, 2016
    谢谢反馈。下次部署时会修正这个问题。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5834 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 57ms · UTC 06:07 · PVG 14:07 · LAX 23:07 · JFK 02:07
    ♥ Do have faith in what you're doing.