fix(tongji): 血糖页禁止整页左右滑动
页面根节点裁掉横向溢出(overflow-x: clip,旧内核回退 hidden), 任何子元素超宽都不会再撑出横向滚动。
This commit is contained in:
@@ -8,6 +8,10 @@
|
||||
--st-shadow-float: 0 16rpx 64rpx rgba(0, 108, 73, 0.15);
|
||||
--tab-dock-full-offset: calc(220rpx + env(safe-area-inset-bottom));
|
||||
padding-bottom: var(--tab-dock-full-offset);
|
||||
// 页面宽度固定:子元素横向超出一律裁掉,整页不能左右滑动。
|
||||
// clip 不会生成滚动容器;不支持 clip 的旧内核忽略第二条,回退到 hidden
|
||||
overflow-x: hidden;
|
||||
overflow-x: clip;
|
||||
}
|
||||
|
||||
/* ===== Header ===== */
|
||||
|
||||
Reference in New Issue
Block a user