LLWiki正在建设中,欢迎加入我们!
“Widget:游戏主界面”的版本间差异
跳转到导航
跳转到搜索
小 |
小 |
||
eleFixed.classList.add('sticky-bottom');
eleStatic.parentNode.insertBefore(eleFixed, eleStatic);
eleFixed.style.width = eleStatic.getBoundingClientRect().width;
eleStatic.style.visibility = 'hidden';
window.addEventListener('scroll', function() {
if(eleStatic.offsetTop
eleFixed.style.display = 'none';
eleStatic.style.visibility = '';
|