【发布时间】:2021-06-23 16:42:48
【问题描述】:
我正在尝试为这种格式的多个条件编写内联 ng 样式;
<div ng-style="thisCondition && {'background-color':'black'},thisCondition2 && {'color':'green'}">
但是这段代码没有做任何事情,请问有什么方法可以检查内联 ng 样式中的多个条件吗?
【问题讨论】:
标签: html css angularjs ng-style