Skip to content
New issue

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

当 body 设置了 transform 样式时,遮罩层出现的位置错误 #177

Open
jiezhiyong opened this issue Jul 18, 2024 · 0 comments
Open

Comments

@jiezhiyong
Copy link

jiezhiyong commented Jul 18, 2024

当我的H5网页在PC上运行时,我给html设置了固定宽度,
因为页面会有position: fixed元素存在,为了让fixed元素宽度不相对于浏览器窗口,我给body设置了样式:transform: translate(0px, 0px);
但是这样就导致inspector对元素的定位不准确

页面布局
image

inspector开始时,遮罩层整体偏移
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant