简体   繁体   中英

Android ignoring 'viewport' metatag

I've included the 'viewport' metatag in the head of my webpage:

<meta name="viewport" content="width=device-width, user-scalable=no" />

The metatag works perfectly on iOS devices, but Android devices completely ignore it.

What am I doing wrong?

Try to leave out the user-scalable=no argument. I've found Android tends to have trouble with that attribute and ignores the whole viewport tag when it finds something it dislikes.

https://code.google.com/p/android/issues/detail?id=11912

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM