我有一张宽度为525的图像。我需要在图像的右侧放置一个链接。我知道area tag更适合这样做。但我不知道这个标签。你能给我这个的坐标属性吗?
谢谢
发布于 2010-09-25 16:26:19
area标记的工作原理如下:http://www.w3schools.com/TAGS/tag_area.asp。但是为什么不使用CSS样式将链接绝对定位在图像之上呢?
<div>
<img src="yadda.jpg" />
<a href="#">blah</a>
</div>
div {
position: relative;
}
a {
position: absolute;
top: 0px;
right: 0px;
}https://stackoverflow.com/questions/3793025
复制相似问题