Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/41.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html @包括未被检测到和媒体断点不工作?_Html_Css_Sass_Phpstorm - Fatal编程技术网

Html @包括未被检测到和媒体断点不工作?

Html @包括未被检测到和媒体断点不工作?,html,css,sass,phpstorm,Html,Css,Sass,Phpstorm,我在这个项目中使用PhpStorm,我试图做一件事情,当分辨率达到596px或更低时,页面的页脚不会显示 当使用@include时,我得到一个错误,说“规则未知”,断点什么也不做 我在HTML页面中引导后导入了footer.css文件,因此所有内容都已正确加载 页脚: <div class="footer"> <p style="margin-top: 15px">Track Transport</p> </div> @include m

我在这个项目中使用PhpStorm,我试图做一件事情,当分辨率达到
596px
或更低时,页面的页脚不会显示

当使用
@include
时,我得到一个错误,说“规则未知”,断点什么也不做

我在HTML页面中引导后导入了footer.css文件,因此所有内容都已正确加载

页脚:

<div class="footer">
    <p style="margin-top: 15px">Track Transport</p>
</div>
@include media-breakpoint-down(sm) {
    .footer {
        display: none;
    }
}

我还尝试在CSS上使用一个“
!important
”,但它似乎没有任何作用。

你应该用“phpstorm”标记你的问题。你在哪里使用该
@include
(什么文件)?是不是
footer.css
?好吧,它必须是.saas/.scss/.less/etc文件,稍后将被传输到实际的CSS中,非常感谢。我不知道。。。谢谢你,先生。你应该用“phpstorm”来标记你的问题。你在哪里使用这个
@include
(什么文件)?是不是
footer.css
?好吧,它必须是.saas/.scss/.less/etc文件,稍后将被传输到实际的CSS中,非常感谢。我不知道。。。谢谢你,先生。