EventUtil.addHandler(window,‘scroll‘,function(){ var dafid = document.getElementById(‘dafid‘), eletop = dafid.getBoundingClientRect().top; if(eletop-549 <= 0){ dafid.className = ‘daf‘; }else{ dafid.className = ‘‘; } });
原生计算浏览器高度
时间: 2024-11-02 00:48:48