【发布时间】:2015-09-06 01:52:34
【问题描述】:
我正在使用 Phonegap Build,但无法让 Android 媒体查询正常工作。我有有效的 iOS 查询,但 Android 的查询没有响应。
当我在浏览器中测试时,它可以工作,但在构建它之后的设备上却不行。
我的查询:
/* <- 480*/
@media screen and (max-height: 507px){
}
/*508 / 530*/
@media screen and (min-height: 508px) and (max-height: 530px){
}
/*531 / 567*/
@media screen and (min-height: 531px) and (max-height: 567px){
}
/*568 / 600*/
@media screen and (min-height: 568px) and (max-height: 600px){
}
/*601 / 650*/
@media screen and (min-height: 601px){
}
元标记
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
【问题讨论】:
-
听起来类似于这个问题:stackoverflow.com/questions/17102161/…
标签: android css media-queries phonegap-build