如果背景图片是从后台取得的数据,可以按下面的方式使用:

   ng-style="{'background':'url(http://xxx/{{item.id}})'}"

  还需要加上   ng-if="item.id"

 

     参考http://stackoverflow.com/questions/17252546/angularjs-ng-style-background-image-isnt-working

相关文章:

  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-07
  • 2021-10-27
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-18
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
  • 2021-10-20
相关资源
相似解决方案