鼠标滑过样式改变
<style type="text/css">
.overit{background-color: #00FF66;}
.outit{background-color: #FF0000;}
</style>
.overit{background-color: #00FF66;}
.outit{background-color: #FF0000;}
</style>
Html中的代码:
<label onmouseover="this.className='overit'" onmouseout="this.className='outit'">Just a Test!</label>