首页 > 网站 > WEB开发 > 正文

兼任性较好的实现鼠标滑过变色

2024-04-27 14:06:41
字体:
来源:转载
供稿:网友

兼任性较好的实现鼠标滑过变色

<!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>


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表