简体   繁体   English

Firefox无法识别HTML元标记

[英]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). 仅适用于Google Chrome浏览器,而不适用于Firefox(均处于“设备”模式)。

Anyone know the reason for this, and perhaps a solution? 任何人都知道原因,也许可以解决?

Firefox has support for viewport meta tag in their mobile version 1.1 onwards. Firefox从其移动版本1.1开始支持视口元标记 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. 我的猜测是不支持此用户可扩展属性,并导致问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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