简体   繁体   中英

HTML meta tag not recognised in Firefox

Been looking on the web, but it seems like I'am the only one who has this problem.

It seems to me that the

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

Only works with Google Chrome, but doesn't on Firefox (both in Device mode).

Anyone know the reason for this, and perhaps a solution?

Firefox has support for viewport meta tag in their mobile version 1.1 onwards. Can you try after removing the "user-scalable" attribute

<meta name="viewport" content="initial-scale=1, maximum-scale=1">

My guess is this user-scalable attribute is not supported and causing problem.

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