【发布时间】:2020-10-27 16:04:47
【问题描述】:
我想为每个图像设置<img title=""> 属性。但我想要图像本身具有的title。我应该如何在代码中做到这一点
下面是我在 .html 中的代码
<div class="img-wrapper">
<img src="data:image/png;base64,{{document.file}}" alt="img-alt" title="" class="img" style="width: 100%; height: 100%;">
</div>
【问题讨论】:
标签: angular typescript image title alt