iPhone 5的屏幕更长,不能捕捉到我网站上的手机画面。iPhone 5有哪些新的响应式设计查询,我可以与现有的iPhone查询结合使用吗?
我目前的媒体查询是:
@media only screen and (max-device-width: 480px) {}
发布于 2012-12-10 21:43:34
对我来说,完成这项工作的查询是:
only screen and (device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)
发布于 2014-07-23 20:23:15
纵向和横向的iPhone 5
@media only screen
and (min-device-width : 320px)
and (max-device-width : 568px) {
/* styles*/
}
景观中的iPhone 5
@media only screen
and (min-device-width : 320px)
and (max-device-width : 568px)
and (orientation : landscape) {
/* styles*/
}
纵向iPhone 5
@media only screen
and (min-device-width : 320px)
and (max-device-width : 568px)
and (orientation : portrait) {
/* styles*/
}
发布于 2012-12-07 18:21:27
这些响应都不适用于我的目标是手机应用程序。
正如下面的link所指出的,下面的解决方案是可行的。
@media screen and (device-height: 568px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2) {
// css here
}
https://stackoverflow.com/questions/12539697
复制相似问题