我使用sass进行样式化,我有一个主sass文件,它有@导入各种不同的scss文件,有条件地包含在媒体查询中。
我在找..。
以下是我的媒体查询:
@import "global";
@media only screen and (min-width: 320px){
@import "styleguide";
@import "phone";
}
@media only screen and (min-device-width: 768px)
and (orientation: portrait){
}
@media only screen and (min-device-width: 768px)
and (orientation: landscape){
@import "tablet-styleguide";
@import "tablet";
}这是我的结果
我已经做了几个小时了,我做错什么了?
发布于 2014-04-30 21:05:52
尝试像这样格式化您的导入(而不是在媒体查询中):
@import url(foo.css) screen and (min-width:320px);
@import url(bar.css) screen and (min-device-width:768px) and (orientation:portrait);
@import url(blah.css) screen and (min-device-width:768px) and (orientation:landscape);发布于 2014-05-02 18:59:55
问题是,我应该使用min-device-wdith而不是min-width。
https://stackoverflow.com/questions/23397571
复制相似问题