哪里出错了,没有系哦啊过,css就有
window.onload = function () {
var lis = document.getElementsByTagName('li');
for(i = 0;i<lis.length;i++){
lis[i].onmouseover = function (){
this.className = lihover;
}
lis[i].onmouseout = function (){
this.className = "";
}
}
}
也按视频li:hover改为.lihover就是没有效果