【发布时间】:2015-11-03 22:09:24
【问题描述】:
<div ng-if="item.attribute == 'attribute1'">
doSomething
</div>
<button class="button button-block button-postive waves-effect waves-button waves-light">
Button 1
</button>
我想这样如果 item.attribute == attribute1 那么按钮的颜色是珊瑚色
.button.button-block, .button.button-full {
background-color: coral;
color: #fff;
}
这可能吗?谢谢
【问题讨论】: