我正在开发一个网站的移动版本,我正在使用css查询来定位ldpi,mdpi,hdpi设备。首先我得到了HTML:
meta content="width=device-width, initial-scale=1.0, user-scalable=0, target-densitydpi=device-dpi, maximum-scale=1.0, minimum-scale=1.0" name="viewport">
meta content="true" name="HandheldFriendly">
link href="css/stylemob.css" media="handheld, only screen and (max-width: 480px), only screen and (max-device-width: 480px)" type="text/css" rel="stylesheet" />
我在不同的设备上进行了测试。它的工作方式就像hdpi和mdpi上的魅力一样,但在ldpi设备上(即宽度为240px),网站左侧和右侧都有白色区域(我已经检查过了)浏览器打开正确的css),启用滚动,如浏览器打开css 320px width min res。
问题: