简体   繁体   English

Pixate FreeStyle媒体查询不适用于iOS

[英]Pixate FreeStyle media query doesn't work ios

i'm trying to make media query in pixate freestyle. 我正在尝试以pixate自由式进行媒体查询。 i'm handling the position in landscape and portrait but it's still the same position.. this is my code 我正在处理风景和肖像中的位置,但是它仍然是相同的位置..这是我的代码

.btn-green {
 color          : .blackColor;
 border-width     : 5px;
 border-color     : #84a254;
 border-style     : solid;
 border-radius    : 10px;
 font-size        : .fontSize;
 top  : 200px;
 width : 100px;
 height : 100px;
}

 @media (orientation:landscape){
  .btn-green {
    left: 200px;
    background-color: #666666; 
 }
}

@media (orientation:portrait){
.btn-green {
    left: 10px;
    background-color: #000000;
 }
}

you have to specify the landscape & portrait width like below. 您必须指定横向和纵向宽度,如下所示。
@media only screen and (device-width : 1024px) {.... write your css...} @media only屏幕和(设备宽度:1024像素){....写您的CSS ...}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM