无标题文档 var Atop = 0; function inix(){ Atop = findPos(document.getElementByIdx("Layer1"))[1]; } function move(){ document.getElementByIdx("Layer1").style.pixelTop = Atop + document.documentElement.scrollTop; } function find