figure element size using javascript
摘要:
1 //get element size 2 3 function getElementLeft(element) { 4 var actualLeft = element.offsetLeft; 5 var current = element.offsetParent; 6 7 while (current !== null) { 8 actualLeft += current.offsetLeft; 9 current = current.offsetParent;10 ... 阅读全文
posted @ 2013-05-15 21:05 雷音 阅读(185) 评论(0) 推荐(0) 编辑