HTML+CSS 鼠标放在文字链接上,弹出一幅图片的效果代码
<html>
<body>
<style type="text/css">
<!--
.thumbnail{position:relative;z-index:0;}
.thumbnail:hover{background-color:transparent;z-index:50;}
.thumbnail span{position:absolute;background-color:#FFFFE0;left:-1000px;border:1px dashed gray;visibility:hidden;color:#000;text-decoration:none;padding:5px;}
.thumbnail span img{border-width:0;padding:2px;}
.thumbnail:hover span{visibility:visible;top:10px;left:280px;}
p{margin-top:200px}
-->
</style>
<a class="thumbnail" href="#">
<---- 想看美女吗?请点击这里哟----><br>
<span><img src=" http://img2.zol.com.cn/product/28_600x2000/125/ces0Z5nrfLemc.gif ">
</span></a>
</body>
</html>