点击量:745次
发表时间:2015-02-17
如果其他逻辑都没问题,那就把下面改一下就行了
node.onmouseover = function() { this.getElementsByTagName("ul")[0].style.display = "block"; this.firstChild.style.backgroundColor= "#FFF"; };
改成
node.onclick= function() { this.getElementsByTagName("ul")[0].style.display = "block"; this.firstChild.style.backgroundColor= "#FFF"; };
本站呈现代码,仅限个人总结整理,可看效果自行测试。