调整页面布局,修复滚动和高度问题
This commit is contained in:
@@ -10,6 +10,10 @@ html, body {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: hidden; /* 禁止 body 滚动 */
|
||||
position: fixed; /* 强制固定 body,防止 iOS 回弹 */
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
@@ -24,7 +28,7 @@ body {
|
||||
font-weight: normal;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow-x: hidden;
|
||||
overflow: hidden; /* 禁止 app 容器滚动 */
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user