Thursday, November 26, 2015

[Android][Resolved] Viewport argument value "device-width;" for key "width" not recognized.

Background Information: 

I tried to load a html webpage on internet via Android webView, and got this error message in LogCat, and here is the error message:

Error message
 Viewport argument value "device-width;" for key "width" not recognized. Content ignored:9

Related code in my case

<meta name="viewport" content="width=device-width; minimum-scale=0.1; maximum-scale=1.0; user-scalable=no"> 

you should replace the semicolons to commas to avoid error:

<meta name="viewport" content="width=device-width, minimum-scale=0.1, maximum-scale=1.0, user-scalable=no">

Reference
https://alxgbsn.co.uk/2011/11/23/make-sure-to-use-correct-meta-viewport-syntax/
http://stackoverflow.com/questions/19250910/viewport-argument-value-device-width-for-key-width-is-invalid-and-has-been

No comments :

Post a Comment