我用dw跟着老师写的,然后浏览效果不出来,在Chrome的Console也没有报错,这是什么原因呢?
<script type="text/javascript"> 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 = ""; } } } </script>