摘要:
getBoundingClientRect() 这个方法返回一个矩形对象,包含四个属性:left、top、right和bottom。分别表示元素各边与页面上边和左边的距离。 var box=document.getElementById('box'); // 获取元素 alert(box.getBo 阅读全文
posted @ 2017-04-13 17:19
o0Luffy0o
阅读(5408)
评论(1)
推荐(2)