我已将以下内容添加到网页中,以使其在移动设备上无法缩放,并尝试以本机分辨率显示:
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1,user-scalable=no" />
然而,在我的三星 Galaxy S 上查看并从 JavaScript 打印出 screen.width
时,它在纵向方向上给出 320,在横向方向上给出 533。我怎样才能使其使用本机分辨率 480 × 800?或者说这不可能吗?
我想这样做是为了避免图像质量因放大 1.5 倍(最初呈像素状态,然后应用平滑滤镜)而降低。