angular 样式
程序员文章站
2022-04-24 16:45:41
...
组件样式
<div [ngClass]="{'userClass':true}"></div>
<div [ngClass]="['blue', 'round']"></div>
<div [ngStyle]="{color: 'white', 'background-color': 'blue'}"></div>
<div [style.background-color]="'yellow'"></div>
转载于:https://www.jianshu.com/p/a447bfaefe74
上一篇: 索引不可用的情况
下一篇: Angular中的自定义指令