Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我最近遇到了三星 Galaxy Note 2 的媒体查询问题。规范说它是 720x1280,像素比率为 2。
我有一个宽度为 100% 的 div 并且 .offsetWidth 返回为 541。
任何人都可以解释一下吗?
谢谢,大卫
您的网站中是否有用户可扩展的元标记?
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
我认为这可能是由于调整到网站的(一些初始)宽度造成的。
希望它有所帮助,但不确定。