スクロールしていない状態のtopやleftの値が取得できる。
例えばボタンを押した際にh1のtopの座標位置を取得する場合、そのボタンがページの一番下(スクロールされた状態)にあっても取得できる値は、スクロールしていない状態のh1の値を取得することになる。
More than 3 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme