資源描述:
《js獲取頁面控件坐標(biāo)》由會員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在應(yīng)用文檔-天天文庫。
1、js獲取頁面控件坐標(biāo)functionget_Text(){m=document.getElementById("mxh")varw=0,h=0;while(m.offsetParent){w+=m.offsetLeft;h+=m.offsetTop;m=m.offsetParent;}alert(w)}sdsdddddd2、tp://www.google.com/help/hc/images/google_logo_sm.gif"id="mxh"/>