变换背景方式小结
变换背景方式:
1.通过变换背景图位置的方式变换链接的图片
.id_Bm_Bt_tc span a {
color: #64A434;
background: url("../image/c_more.gif") no-repeat scroll 0 2px transparent;
display: block;
float:right;
line-height: 20px;
padding-left: 20px;
}
.id_Bm_Bt_tc span a:HOVER {
color: #999999;
background-position:0 -18px;
}
html:
<div class="id_Bm_Bt_tc left">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<img src="${ctp }/modulePage/index/image/e21_pi_045.jpg"/>
</td>
<td>
社区动态
</td>
<td>
<span>
<a href="${ctp }/page/forum_forum_forumIndex">详情</a>
</span>
</td>
</tr>
</table>
</div>
滑动门事件
Mr-sniper
北京市海淀区
邮箱:rafx_z@hotmail.com
北京市海淀区
邮箱:rafx_z@hotmail.com