文档里讲了:当元素祖先的 transform, perspective 或 filter 属性非 none 时,容器由视口改为该祖先。
文档:https://developer.mozilla.org/zh-CN/docs/Web/CSS/position
position fixed 不是基于浏览器窗口的问题
最新推荐文章于 2024-04-22 13:56:02 发布
文档里讲了:当元素祖先的 transform, perspective 或 filter 属性非 none 时,容器由视口改为该祖先。
文档:https://developer.mozilla.org/zh-CN/docs/Web/CSS/position