window.onscroll事件 谷歌兼容性有关问题
window.onscroll事件 谷歌兼容性问题
直接贴代码
window.onscroll=function(){ var scroHeight=document.documentElement.scrollTop||document.body.scrollTop; if(scroHeight >= 119 ){ document.getElementById("cd").className="table1"; }else{ document.getElementById("cd").className="table"; } }
版权声明:本文为博主原创文章,未经博主允许不得转载。