我有一个媒体查询和相应的 CSS,它在屏幕右侧为桌面用户设置了一个工具集,在底部为移动用户设置了一个工具集。但是,它会覆盖 CSS 属性并将 0 分配给“左”和“右”。我做错了什么?请看下面萤火虫的截图。
这是我的媒体标签:
/*
- Binds all layouts together with imports and mediaqueries.
*/
//@import "libs/reset.less";
@import "mediaqueries/global.less";
@import "mediaqueries/desktop.less";
@import "mediaqueries/mobile.less";
@media only screen and (min-width: 480px) {
.mqMobile; /* Use mix-in to make sure that the styles are expanded inside the mediaquery */
}
@media only screen and (min-width: 992px) {
.mqDesktop; /* Use mix-in to make sure that the styles are expanded inside the mediaquery */
}