简体   繁体   English

Meteor Bootstrap节点模块覆盖了我自己的CSS

[英]Meteor Bootstrap node modules overwrite my own css

Im using Meteor why node modules are load at last, and overwrite my own css files in imports/ directories? 我正在使用流星,为什么最后加载了节点模块,并在imports/目录中覆盖了我自己的CSS文件? Im using bootstrap , but there are class es that I don't like as background-color body . 我正在使用引导程序 ,但有些class我不喜欢作为background-color body Here happens this: in my directories: 发生这种情况:在我的目录中:

import/ui/socially/socially.less  
body{ backgrond-color: #000000;}

but don't work, when the firefox or chrome refresh the same default bootstrap color always appear. 但不起作用,当Firefox或chrome刷新时,总是会出现相同的默认引导颜色。

I read the documentation Order Loads but this no solution my issue. 我阅读了文档“订单加载”,但这没有解决我的问题。 I don't wanna overwrite original files of the bootstrap, or delete, or edit because is not good idea when I will use .git Any ideas? 我不想覆盖引导程序的原始文件,删除或编辑,因为在使用.git时不是一个好主意吗? Thanks for all. 谢谢大家 Please I have many days in this issue jajaja 请在这个问题上我有很多天

  • Check your css syntax 检查您的CSS语法

body{ background-color: #000000 }

  • Make sure you load your external CSS file after the bootstrap css file else your rules will get overwritten 确保在引导CSS文件之后加载外部CSS文件,否则您的规则将被覆盖
  • If it still doesn't work. 如果还是不行。 Try this : 尝试这个 :

body{ background-color: #000000 !important }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM