内容中的 position : fixed 竟然没相对窗口来定位
在 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;
然后里面的 fixed 就根据 有这个属性来定位了,暂时不知道 什么原因,去掉就好了
更多推荐
已为社区贡献17条内容
所有评论(0)