zthxxx / react-dev-inspector

jump to local IDE code directly from browser React component by just a simple click
https://react-dev-inspector.zthxxx.me
MIT License
1.15k stars 68 forks source link

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

Open jiezhiyong opened 1 month ago

jiezhiyong commented 1 month ago

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

页面布局 image

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