我一直在重新访问 MDN 上的视口(viewport)标签和文章 Viewport width and screen width ,他们建议:
Suppress the small zoom applied by many smartphones by setting the initial scale and minimum-scale values to 0.86. The result is horizontal scroll is suppressed in any orientation and the user can zoom in if they want to.
<meta name="viewport" content="width=device-width, initial-scale=0.86, maximum-scale=5.0, minimum-scale=0.86"
MDN页面最后一次修改是2021年7月27日。我一直用initial-scale:1
对于我的工作,从未遇到过任何对其应用缩放的移动设备。0.86
的号码在哪里?来自?有引用吗? 最佳答案
我将重点介绍引用部分。
这是公关:https://github.com/mdn/content/pull/612
作者及说明:
可以在 https://github.com/mdn/content/pull/612/files 找到更改
一眼:
提交:https://github.com/mdn/content/pull/612/commits/0e98d81de11f8c8b07e3936e54b708b91aa8757f
关于html - 为什么 MDN 建议在视口(viewport)标签中使用 initial-scale=0.86 和 minimum-scale=0.86 来抑制水平滚动?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68664052/