发新话题
打印

css的问题

.font134 {
font-size: 13px;
text-decoration: none;
height: 29px;
width: 76px;
color: #333333;
text-align: center;
}
.font134 a:link {
font-size: 13px;
color: #333333;
text-decoration: none;
text-align: center;
}
.font134 a:visited {font-size: 13px;color:#333333;text-decoration: none;}
.font134 a:hover {
text-decoration: none;
background-image: url(../image/index_bz.jpg);
background-attachment: fixed;
background-repeat: no-repeat;
background-position: center center;
height: 29px;
width: 76px;
color: #FFFFFF;
text-align: center;
font-size: 13px;
}

<td align="center" class="font134"><a href="news.php">新闻动态</a></td>

为什么不出现预想的效果呢,这样定义的图片不感应鼠标动作,是怎么回事呢?

TOP

加一个
img a:hover{
height: 31px;
width: 78px;
boder:1px;
}就可以了

TOP

<td align="center" class="font134"><a href="news.php">新闻动态</a></td>

修改成

<td align="center" ><a href="news.php" class="font134">新闻动态</a></td>

TOP

发新话题