在 vue 项目中,有个页面切换动画,然后内容里的 position : fixed 只相对 viewBox 来定位,检查后发现动画的css 中的个属性
-webkit-perspective: 1200px;
-moz-perspective: 1200px;
perspective: 1200px;
然后里面的 fixed 就根据 有这个属性来定位了,暂时不知道 什么原因,去掉就好了
在 vue 项目中,有个页面切换动画,然后内容里的 position : fixed 只相对 viewBox 来定位,检查后发现动画的css 中的个属性
-webkit-perspective: 1200px;
-moz-perspective: 1200px;
perspective: 1200px;