简体   繁体   English

如何使用 css 覆盖 bootstrap4 中的任何代码?

[英]How can i overwrite any code in bootstrap4 using css?

Can anyone please tell me how to overwrite css in bootstrap Eg I want to add fonts and color to bootstrap carousel If anyone knows please tell me谁能告诉我如何在 bootstrap 中覆盖 css 例如我想向 bootstrap carousel 添加字体和颜色如果有人知道请告诉我

if you want to add any style you should overwrite it simply without adding important attributes if it will not work then make sure your CSS file is after the bootstrap file if it still is not implemented then apply a style with !important like div{color:#000;important;}如果你想添加任何样式你应该简单地覆盖它而不添加重要属性如果它不起作用然后确保你的CSS文件在引导文件之后如果它仍然没有实现然后应用带有!important的样式div{color:#000;important;}

use.important in that style. use.important 那种风格。 like div{color:#000;important;}div{color:#000;important;}

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

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