V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Get Google Chrome
Vimium · 在 Chrome 里使用 vim 快捷键
whi147
V2EX  ›  Chrome

Html 如何获取元素相对浏览器的坐标

  •  
  •   whi147 · Jun 22, 2021 · 1825 views
    This topic created in 1777 days ago, the information mentioned may be changed or developed.
    有一些特殊需求,需要拿到元素相对浏览器的坐标
    window.screenX 这个方法在窗口化时坐标偏差 8px,最大化时正常
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2612 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 05:39 · PVG 13:39 · LAX 22:39 · JFK 01:39
    ♥ Do have faith in what you're doing.