css 媒体查询

Posted 木子喵

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css 媒体查询相关的知识,希望对你有一定的参考价值。

//x,xs
@media only screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) {

ion-content {
    --padding-bottom: 130px;
}

}
// xr
@media only screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) {

ion-content {
    --padding-bottom: 130px;
}

}

// xs max
@media only screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) {

ion-content {
    --padding-bottom: 130px;
}

}

以上是关于css 媒体查询的主要内容,如果未能解决你的问题,请参考以下文章