我正在显示Facebook聊天的图片链接。链接还会影响下面同一列但div之外的文本?我只想图像链接其他任何内容!谢谢你的帮助!
<div><a href="https://test.com"><img src="https://test.com/wp-content/uploads/2021/06/messenger-button.png" width="300px" height="auto"></div>
屏幕截图
您没有在<img>
标记之后关闭<a>
标记!因此,它扩展到浏览器决定自动更正此错误的任何地方。
制作:
<div><a href="https://test.com"><img src="https://test.com/wp-content/uploads/2021/06/messenger-button.png" width="300px" height="auto"></a></div>