鼠标移动,背景变色

<style>
.first 
{background:#666;}
.gray 
{background:red;}
</style>
<div class="first" onmouseover="this.className='gray'" onmouseout="this.className='first'">
原文地址:https://www.cnblogs.com/findw/p/1982812.html