Skip to content

Instantly share code, notes, and snippets.

@ghostcode
Created July 14, 2014 05:05
Show Gist options
  • Save ghostcode/2b5e6c6b4cff61daeee0 to your computer and use it in GitHub Desktop.
Save ghostcode/2b5e6c6b4cff61daeee0 to your computer and use it in GitHub Desktop.
meta信息报错

Viewport argument value "device-width;" for key "width" is invalid, and has been ignored. Note that ';' is not a separator in viewport values. The list should be comma-separated.

页面上写:

<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0" name="viewport" />

会报如上的一些警告。

解决方法:(逗号替代分号,分号在html中代表结束)

<!-- <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" /> -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment