logo
  • 教程列表
  • SO官方文档
  • 风格
    • 使用 ng 风格
  1. StackOverflow 文档
  2. AngularJS 教程
  3. 风格
  4. 使用 ng 风格

使用 ng 风格

Created: November-22, 2018

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

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

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明