1
media="(max-device-width: 480px), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2), all and (max-width: 480px)"

大家好,

CSS 在视口为 480 像素或更少的桌面上运行良好,但在 iPhone 上却无法使用。知道媒体查询代码有什么问题吗?

谢谢

4

1 回答 1

0

你有视口元标记吗?

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
于 2012-09-06T20:08:26.730 回答