你的位置:首页 > Java教程

[Java教程]兼任性较好的实现鼠标滑过变色


<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="author" content="http://www.51texiao.cn/" /><title>蚂蚁部落</title><style type="text/css">a{text-decoration:none;}.over{background-color:green;}.out{background-color:#FFF;}</style></head><body><ul> <li onmouseover="this.className='over'" onmouseout="this.className='out'">  <a href="#">html</a> </li> <li onmouseover="this.className='over'" onmouseout="this.className='out'">  <a href="#">div+css</a> </li> <li onmouseover="this.className='over'" onmouseout="this.className='out'">  <a href="#">javascript</a> </li> <li onmouseover="this.className='over'" onmouseout="this.className='out'">  <a href="#">Jquery</a> </li></ul></body></html>