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 在视口(viewport)为 480 像素或更小的桌面上正常工作,但在 iPhone 上不起作用。知道媒体查询代码可能有什么问题吗?
谢谢
最佳答案
你有适当的视口(viewport)元标记吗?
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
关于iphone - 为什么 CSS 不启动 max-device-width : 480px?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10140438/