服务器安全  (41)
网站推广专题  (36)
智能建站知识  (12)
DIV+CSS  (44)
网站建设知识  (31)
乱七八糟  (1)
 

鼠标经过文字或图片时显示大图片

北京智能建站-智能建站系统-十艾智能建站   2009-02-26 10:41:48 作者:SystemMaster 来源: 文字大小:[][][]

<title>鼠标经过效果</title>
</head>

<body>
<style type="text/css">

.thumbnail{
position: relative;
z-index: 0;
}

.thumbnail:hover{
background-color: transparent;
z-index: 50;
}

.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: lightyellow;
padding: 1px;
left: -1000px;
border: 1px dashed gray;
visibility: hidden;
color: black;
text-decoration: none;
}

.thumbnail span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 2px;
}

.thumbnail:hover span{ /*CSS for enlarged image on hover*/
visibility: visible;
top: 0;
left: 55px; /*position where enlarged image should offset horizontally */

}

</style>
<a class="thumbnail" href=链接><img src="imgaes/009.jpg" alt="图片在这" width="50" border="0"><span><img src="imgaes/009.jpg" alt="图片

在这" width="110" border="0"></span></a> <br />
<a class="thumbnail" href=链接><img src="imgaes/009.jpg" alt="图片在这" width="50" border="0"> <span><img src="imgaes/009.jpg" alt="图

片在这" width="110" border="0"></span></a>
</body>
</html>

最新评论
发表评论  
2010-04-25 02:36
  我来评论一下!!!  
评论标题
评论内容
图片上传
表情图标
验 证 码
关于我们 站点地图 联系方式 帮助中心 会员社区 友情链接 内容搜索
 
本站关键词:智能建站 北京智能建站  智能建站系统   智能网店 免费智能建站
24小时服务热线:13521942498    E-mail:whwvip#126.com(请将#改为@)  QQ:279764954  621825069  447458068
智能建站  智能网店  seo优化© 版权所有  京ICP备07014896号