dw8中关于css

来源:百度知道 编辑:UC知道 时间:2024/06/08 09:58:25
现有一段在表格中的文字(非链接),应用了一种CSS样式,需要设置为当鼠标经过表格时,该段表格中的文字应用另一种CSS样式,请问该如何操作?谢谢!
呃……已经说了是“非链接”文字内容,而且文字已经应用了一种CSS样式

<style>
.d_over{ width:500px; height:200px; margin:0 auto; background:#66CCFF; border:#e5e5e5 1px solid; }
.d_out{ width:500px; height:200px; margin:0 auto; background:#fff; border:#e5e5e5 1px solid; }
</style>

<div class="d_out" onmouseover="this.className='d_over'" onmouseout="this.className='d_out'">鼠标滑过测试一下</div>

a {font-size: 12px;color: #333333;}
a:link {text-decoration: none;}
a:visited {text-decoration: none;color: #333333;}
a:hover {text-decoration: underline;color: #000000;}
a:active {text-decoration: none;color: #333333;}

用js实现

我也不懂啊!期待有朋友能回答这个问题