我在 html 正文中有一个图像元素,宽度为 440 px,高度为 840 px。一切都按预期工作,直到我打开 chrome 调试模式以模拟它在移动设备中的显示。
屏幕截图与身体宽度
如屏幕截图所示,模拟器假设宽度为 375 px。但不知何故变成了 964 px 宽度。那里没有任何额外的 css 脚本或 js 脚本。只是一个带有一张图像的简单 html。带有图像宽度的屏幕截图
html css mobile debug-mode google-chrome-devtools
css ×1
debug-mode ×1
google-chrome-devtools ×1
html ×1
mobile ×1