<div class="secondary-value"
ng-style="{ background: totalColour || '#0000ff' }"></div>
How can i add print css to ng-style? or how can i use !important in ng-style attribute. i'm trying to print the page but the ng-style attribute css doesn't print.
如何将打印css添加到ng-style?或者如何在ng-style属性中使用!important。我正在尝试打印页面,但ng-style属性css不打印。
1 个解决方案
#1
0
When you use ng-style you need to use quotes aswell
使用ng-style时,您还需要使用引号
<div class="secondary-value"
ng-style="{ 'background-color': totalColour || '#0000ff !important' }"></div>
#1
0
When you use ng-style you need to use quotes aswell
使用ng-style时,您还需要使用引号
<div class="secondary-value"
ng-style="{ 'background-color': totalColour || '#0000ff !important' }"></div>