如題,計算某p左側(cè)距離HTML根元素的距離?
<p id="a"></p>
var oa = document.getElementById('a');
left = oa.offsetLeft; //left就是