axetroy / axetroy/stackoverflow

position: absolute 会导致 offsetLeft为0

Open
#21 0 comments 0 reactions 0 assignees View on GitHub
Web
Dominant language
No language data
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Description

当定位发生变化时

``offsetLeft/Right/Bottom/Top``会为0值

父级元素的定位发生变化也同样如此

这可能会导致一些难以发现的BUG和布局错乱

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.