16,874
个编辑
LLWiki正在建设中,欢迎加入我们!
小 |
小 |
||
eleFixed.classList.add('sticky-bottom');
eleStatic.parentNode.insertBefore(eleFixed, eleStatic);
eleFixed.style.width = eleStatic.getBoundingClientRect().width + 'px';
eleStatic.style.visibility = 'hidden';
window.addEventListener('scroll', function() {
|