We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dom 结构如下图
sourceNode 获取到的 offsetParent 是 上图中 ”position:fixed“ 的元素,这样的话,就直接跳过了 ”overflow:auto“ 的元素参与 可视区域计算的过程,又因为 ”position:fixed“ 的元素 的overflow 属性 为 "visible" ,他之上的元素一直到 body都是 ”visible“ 属性,导致最终的可视区域 就变为了 body
The text was updated successfully, but these errors were encountered:
遇到同样问题了,请问最后有办法解决吗?
Sorry, something went wrong.
No branches or pull requests
前置条件:
dom 结构如下图
实际结果:
sourceNode 获取到的 offsetParent 是 上图中 ”position:fixed“ 的元素,这样的话,就直接跳过了 ”overflow:auto“ 的元素参与 可视区域计算的过程,又因为 ”position:fixed“ 的元素 的overflow 属性 为 "visible" ,他之上的元素一直到 body都是 ”visible“ 属性,导致最终的可视区域 就变为了 body
预期结果:
The text was updated successfully, but these errors were encountered: