# mobile.scss 中的 @imported 样式表 优先级低于核心声明

**URL:** <https://meta.discourse.org/t/imported-stylesheets-in-mobile-scss-dont-take-precendence-over-core-declarations/291302>\
**Category:** Bug\
**Created:** [2024 年1 月 11 日 13:05 UTC](https://meta.discourse.org/t/imported-stylesheets-in-mobile-scss-dont-take-precendence-over-core-declarations/291302 "2024-01-11T13:05:55Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

作者： ![manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manuel/32/468169_2.png) [@manuel](https://meta.discourse.org/u/manuel)\
发布日期： [2024 年1 月 11 日 17:25 UTC](https://meta.discourse.org/t/imported-stylesheets-in-mobile-scss-dont-take-precendence-over-core-declarations/291302/3 "2024-01-11T17:25:58Z")

</div>

这与特异性无关，因为我在 mobile.scss 和使用 @import 的 mobile.scss 之间切换了完全相同的声明。第一个被应用，而另一个在浏览器检查器中被覆盖。

但现在我也无法重现它了！我刚刚创建了一个只有 mobile.scss 的空白组件来再次尝试，声明两种方式都已应用。

非常抱歉误报！不过我不知道之前是什么原因导致的……在不同的浏览器中也是这样……

---

_[View the full topic](https://meta.discourse.org/t/imported-stylesheets-in-mobile-scss-dont-take-precendence-over-core-declarations/291302)._
