2012/8/3 23:35:231609 閱讀
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>鼠標(biāo)經(jīng)過(guò)效果</title>
</head>
<body>
<style type="text/css">
.shubiaoover{
position: relative;
z-index: 0;
}
.shubiaoover:hover{
background-color: transparent;
z-index: 50;
}
.shubiaoover span{
position: absolute;
padding: 1px;
left: -1000px;
visibility: hidden;
color: black;
text-decoration: none;
}
.shubiaoover span img{
border-width: 0;
padding: 2px;
}
.shubiaoover:hover span{
visibility: visible;
top: 0px;
left: 0px;font-size:13px;
}
</style>
文字效果
<a class="shubiaoover" href="">鼠標(biāo)點(diǎn)擊這里
<span>看這里,第二cent</span>
</a>
</body>
</html>
圖片效果為:
<a class="shubiaoover" href=""><img src="http://www.hi632.com/images/logo2012.jpg" border="0" onClick="showDiv(this)"><span><img src="http://www.dgdrwl.com.cn/images/log.gif" width="165" height="26" border="0"></span></a>
微信小程序
掃描手機(jī)瀏覽