小编Mar*_* Ma的帖子

为什么 chrome 移动调试模式将 html body 的宽度设置得比设备宽度大得多?

我在 html 正文中有一个图像元素,宽度为 440 px,高度为 840 px。一切都按预期工作,直到我打开 chrome 调试模式以模拟它在移动设备中的显示。

屏幕截图与身体宽度

如屏幕截图所示,模拟器假设宽度为 375 px。但不知何故变成了 964 px 宽度。那里没有任何额外的 css 脚本或 js 脚本。只是一个带有一张图像的简单 html。带有图像宽度的屏幕截图

html css mobile debug-mode google-chrome-devtools

5
推荐指数
2
解决办法
2472
查看次数

标签 统计

css ×1

debug-mode ×1

google-chrome-devtools ×1

html ×1

mobile ×1