我正在使用ng-multiselect-dropdown。我该如何覆盖CSS样式?
组件.html
<ng-multiselect-dropdown [placeholder]="'Select Region'"
[data]="dropdownList" [(ngModel)]="selectedItems"
[settings]="dropdownSettings" (onSelect)="onItemSelect($event)"
(onSelectAll)="onSelectAll($event)" >
</ng-multiselect-dropdown>
component.css
.multiselect-dropdown[_ngcontent-c5] .dropdown-btn[_ngcontent-c5] {
display: inline-block;
border: 1px solid #adadad;
width: 100%;
padding: 6px 12px;
margin-bottom: 0;
font-size: 12px;
font-weight: 400;
line-height: 1.1;
text-align: left;
vertical-align: middle;
cursor: pointer;
background-image: none;
border-radius: 4px;
}
我需要使用上述CSS代码覆盖默认CSS。
encapsulation: ViewEncapsulation.None,
- Joel Joseph!important
。 - Joel Joseph