鼠标移到文字上方的时候改变文字颜色,
鼠标移走以后恢复文字为原来的颜色。
我试着用了这样的语句,可是没有效果
OnMouseOver="style.color='red';curcolor=style.color"
OnMouseOut="style.color=curcolor"
---------------------------------------------------------------
或者:
1<style type="text/css">
2a.red:hover { color: #FF0000}
3</style>
1<a class="red" href="energyselect.asp" name="文字" target="sel">文字</a>
如果所有的都变,只要:
1<style type="text/css">
2a:hover { color: #FF0000}
3</style>
1<a href="energyselect.asp" name="文字" target="sel">文字</a>