【发布时间】:2018-09-21 05:27:01
【问题描述】:
我有这些重定向到链接的图像,我希望当我将鼠标悬停在它们上时会弹出一个文本。怎么做?我尝试了 w3schools 教程,但它们不包含 div
<!DOCTYPE html>
<html>
<head>
<title></title>
<style>
div.folder1 {
position: absolute;
top: 30%;
left: 50%;
}
div.folder2 {
position: absolute;
top: 20%;
left: 40%;
}
</style>
</head>
<body>
<div class="folder1">
<a href="yourlinkhere" target="_self">
<img src="https://78.media.tumblr.com/c00202bad8ae39931e34a7efa861d18b/tumblr_p70bjja6xI1x5vw3ao1_500.png" height="46" width="57" />
</a>
</div>
<div class="folder2">
<a href="yourlinkhere" target="_self">
<img src="https://78.media.tumblr.com/c00202bad8ae39931e34a7efa861d18b/tumblr_p70bjja6xI1x5vw3ao1_500.png" height="46" width="57" />
</a>
</div>
</body>
</html>
【问题讨论】:
标签: html image hyperlink popup hover