我参与在图片上添加链接,谁能帮我?在图形标记中使用标记正确吗?
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/dojo/1.13.8/resources/dojo.min.css" />
<figure class="mar-btm-30">
<a href="" alt="">
<img class="img-responsive image-center" title="" alt="" src="https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png" />
<figcaption class="text-center"><em>Caption</em></figcaption>
</a>
</figure>
您不需要a标记中的alt属性,但总的来说,您的解决方案是正确的。你只需要用一个标签来包装你的img标签。