laravel电子邮件媒体查询被忽略

时间:2018-04-03 15:25:02

标签: css laravel email media-queries

我有一个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;
    }
}

1 个答案:

答案 0 :(得分:-1)

您必须将媒体查询css添加到layout.blade.php文件中,而不是主题css文件中,以便可以呈现它。