我的项目中有一个包含一些文本和条件垫滑块的组件。
我的代码:
<mat-slider *ngIf="isVisible" [min]="minValue" [max]="maxValue" [step]="stepValue" [thumbLabel]="true" [tickInterval]="1"></mat-slider>
<div style="color: #0089D6; font-size: 13px; font-weight: 500;">This is a sample text.</div>
颜色代码没有改变,我已经寻找任何 css 覆盖,但我找不到任何东西。但是,如上所示,颜色会发生变化。为什么会这样?