我有一个css类,我应用于我的刀片模板中的元素。
当我在themes / default.css
中有以下css时,它工作正常.mobile-full-width {
min-width: 100% !important;
padding: 0 !important;
color: red !important;
}
但是当我将它与媒体查询一起使用时它不起作用:
@media screen and (max-width: 480px) {
.mobile-full-width {
min-width: 100% !important;
padding: 0 !important;
color: red !important;
}
}
答案 0 :(得分:-1)
您必须将媒体查询css添加到layout.blade.php文件中,而不是主题css文件中,以便可以呈现它。