vue2项目中,IOS端h5页面跳转到第三方页面,回跳页面空白问题
- 原因:回跳回来页面丢失高度
- 解决:对根组件添加id为app,css操作添加高度
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
position: relative;
}
#app {
width: 100%;
height: 100%;
background: #fff;
overflow: scroll;
-webkit-overflow-scrolling: touch;
position: absolute;
left:0;
top:0;
}