【问题标题】:Adding an image to the display in Angular在 Angular 中将图像添加到显示中
【发布时间】:2022-09-29 18:15:24
【问题描述】:

我希望向我显示请求的图标,但它没有显示给我,我什至不知道为什么,因为我写了这样一个选择器

它不起作用请帮助我!

    标签: html css angular image src


    【解决方案1】:

    选择器应更改为

    <img [src]="icon.png"> 
    

    不关闭选择器

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-02
      • 1970-01-01
      • 1970-01-01
      • 2018-11-21
      • 1970-01-01
      • 2015-12-12
      相关资源
      最近更新 更多