Open sjn221314 opened 8 years ago
div{width:1.333333rem;height:1.333333rem;background:red;}
@media screen and (min-width:540px){
div{background:yellow;}
}
其实也没什么代码,就是html上放个div,然后css里有个用media控制的css。然后会发现有问题,而且我在chrom模拟的6plus下弹了$(window).width();发现数值不对,各位大大可以测一下
div{width:1.333333rem;height:1.333333rem;background:red;}
@media screen and (min-width:540px){
}