开发者

How to find coordinates of an element relative to browser window

I want coordinates of an element relative to the browser window. So if an element开发者_运维百科 is at top-left corner of browser can I get it's coordinates as x=0, y=0. How to achieve this ?


I think you could use this script or use jquery offset()

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜