StackOverflow 文档 AngularJS 教程 风格 使用 ng 风格 使用 ng 风格 Created: November-22, 2018 下面的示例根据 status 参数更改图像的不透明度。 placeholderCopy<img class="img-responsive" ng-src="{{imagesrc}}" ng-style="{'opacity' : (status == 2) ? 1 : 0.5}"> 风格