这是我的元标记...
<meta name="viewport" content="width=device-width, initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
我将断点用作 max-320 然后 max-480,当我从 320 的设备宽度测试我的页面时,它工作正常,但是当测试具有 480 设备宽度的页面时,它仍然选择 320 宽度的样式表。为什么它选择错误的样式表请帮助..
<link rel="stylesheet" media="only screen and (max-width:320px) and (orientation:portrait)" href="style/xxs_p.css">
<link rel="stylesheet" media="only screen and (max-width:320px) and (orientation:landscape)" href="style/xxs_l.css">
<link rel="stylesheet" media="only screen and (min-width:321px) and (max-width:480px) and (orientation:portrait)" href="style/xs_p.css">
<link rel="stylesheet" media="only screen and (min-width:321px) and (max-width:480px) and (orientation:landscape)" href="style/xs_l.css">
这是我的代码中的问题还是只是模拟器表现得很奇怪?请帮忙!!