标签:io ar on cti ef tt br ht return
function GetElCoordinate(e) {
var t = e.offsetTop;
var l = e.offsetLeft;
var w = e.offsetWidth;
var h = e.offsetHeight;
while (e = e.offsetParent) {
t += e.offsetTop;
l += e.offsetLeft;
}
return {
top: t,
left: l,
width: w,
height: h,
bottom: t + h,
right: l + w
}
}
标签:io ar on cti ef tt br ht return
原文地址:http://www.cnblogs.com/tanghongbo/p/4160251.html