如何覆盖ss-multiselect-dropdown的CSS

时间:2019-06-26 14:01:02

标签: javascript angular angular7 ng-bootstrap

我想在angular 7中覆盖ss-multiselect-dropdown的样式,我通过安装ngb multiselect来使用它 我如何覆盖CSS

1 个答案:

答案 0 :(得分:0)

尝试一下:

HTML

<ss-multiselect-dropdown style="color: black; 
background-color:transparent;bordercolor: #d5c2c2;" 
[options]="myOptions" [(ngModel)]="optionsModel" (ngModelChange)="onChange($event)"> 
</ss-multiselect-dropdown>

CSS

ss-multiselect-dropdown {
   color: blue !important;
   font-size: 160px !important;
   font-weight: bold !important;
}