![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif)
<!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>鼠标经过效果</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 */
}
.style1
{
width: 100%;
}
</style>
<a class="thumbnail" href="">文字在这呢<span>
<table>
<tr>
<td align="center">
车辆简介
</td>
</tr>
<tr>
<td>
<img src="http://www.ln2car.com/upload/usedcarsell/2010-01-20/a03cf803-77dc-4758-8a2d-73905adc21b4.jpg_tbi2.jpg">
</td>
</tr>
</table>
</span></a>
</body>
</html>
</html>