offsetTop = top +marginTop. 示例:让div变窄. 现象:onmouseover时,div变窄. 原理:. oDiv.style.width = oDiv.offsetWidth - 1 + "px";. js部分.
確定! 回上一頁