[英]How to override bootstrap styles in Angular?
I have declared styles in angular.json file section: 我在angular.json文件部分中声明了样式:
"styles": ["src/assets/css/bootstrap.min.css", "src/assets/css/style.css"]
First I have added bootstrap.min.css
, then custom style.css
. 首先,我添加了bootstrap.min.css
,然后添加了bootstrap.min.css
定义style.css
。
Style.css
should override bootstap styles, but this does not happen. Style.css
应该覆盖引导样式,但这不会发生。
How to be? 怎样成为?
For production mode, try: 对于生产模式,请尝试:
ng build --prod -extract-css false
See Angular cli changes css files order when build 构建时请参阅Angular CLI更改CSS文件的顺序
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.