16,874
个编辑
LLWiki正在建设中,欢迎加入我们!
小 |
小 |
||
timer = setTimeout(function() {
if(eleStatic.getBoundingClientRect().top < eleFixed.getBoundingClientRect().top) {
eleFixed.style.
eleStatic.style.visibility = '';
}
else {
eleFixed.style.
eleStatic.style.visibility = 'hidden';
}
|