使用 ng 风格

下面的示例根据 status 参数更改图像的不透明度。

 <img class="img-responsive"  ng-src="{{imagesrc}}"
     ng-style="{'opacity' : (status == 2) ? 1 : 0.5}">