因此,我在项目中添加了自定义 app.css,并且使用引导模板。现在,当我在 app.css 中创建新的按钮样式时,它可以在任何地方访问(因为我获得了主模板,并且其他页面正在扩展它,所以在每个页面上),但是当我在 app.css 中覆盖引导主题时,它不起作用。当我使用相同的代码覆盖页面顶部的引导程序时<style>
标记它正在工作。 app.css 已正确包含在 bootstrap.css 之后,所以知道我做错了什么吗?
尝试缓存刷新,对于我在 Chrome 中,我使用Ctrl
+Shift
+R
.
If this doesn't produce any results, use the inbuilt inspectors on Chrome or Firefox to view the attached properties to the element you are editing. If the app.css is overriding the bootstrap.css, you will see something like the below image, showing the app.css is above the skin-purple.min.css meaning the app.css was the latest to be loaded.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)