0
普通CSS:媒體查詢:基於iPhone屏幕設置填充頂
.container-step1 {
text-align: center;
margin: 0 auto;
padding-top: 12%;
width: 50em !important;/*60em*/
height: 35em;
}
對於移動我想更新padding-top:25%;
。我試過了:
@media only screen and (max-device-width: 480px) {
.container-step1 {
text-align: center;
margin: 0 auto;
padding-top: 25%;
width: 50em !important;/*60em*/
height: 35em;
}
}
它沒有工作。 Safari仍然指的是正常的CSS。