From 0881972150742a21a77598e06955d7b974c84e5e Mon Sep 17 00:00:00 2001 From: karlcarlo Date: Sun, 11 Oct 2026 13:00:58 +0000 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E7=A6=81=E6=AD=A2=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E5=9B=9E=E5=BC=B9=EF=BC=9A=E9=94=81=20html/body=20+?= =?UTF-8?q?=20=E6=BB=9A=E5=8A=A8=E5=8C=BA=20contain=20+=20=E8=A7=A6?= =?UTF-8?q?=E6=91=B8=E6=8B=A6=E6=88=AA=EF=BC=88=E7=BB=9F=E4=B8=80=E8=A7=84?= =?UTF-8?q?=E5=88=99=EF=BC=89v26101012?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: AI 助手 --- index.html | 29 ++++++++++++++++++++++++++++- js/app.js | 2 +- mama-box.css | 4 ++++ 3 files changed, 33 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 949455d..e39e270 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ 兜爸心选 · 孕育陪伴 - + @@ -2089,5 +2089,32 @@ + + diff --git a/js/app.js b/js/app.js index e0a6cf8..11bcce3 100644 --- a/js/app.js +++ b/js/app.js @@ -3,7 +3,7 @@ (function () { 'use strict'; /* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */ - var VER = '26101011'; + var VER = '26101012'; const $ = (s, c) => (c || document).querySelector(s); const $$ = (s, c) => Array.from((c || document).querySelectorAll(s)); diff --git a/mama-box.css b/mama-box.css index 3c5ab7f..ffc4aa4 100644 --- a/mama-box.css +++ b/mama-box.css @@ -96,6 +96,10 @@ button,a,input,textarea,select,summary,[tabindex]{transition:box-shadow .15s eas :focus{outline:none} :focus-visible{outline:3px solid rgba(244,89,60,.55);outline-offset:2px;border-radius:6px} .modal,.sheet,.search-layer,.scrim{overscroll-behavior:contain} +/* 禁止下拉回弹(2026-10-11 统一规则):iOS 微信里滑到顶再下拉会把整页拖下来露出「网页由 … 提供」。 + 外壳 .phone 固定一屏、滚动都在内部容器里,所以锁 html/body 不影响内容滚动;第二层触摸拦截在 index.html 前。 */ +html,body{overflow:hidden;overscroll-behavior:none} +.screen,.detail-body,.sheet-scroll,.modal,#appsGrid,.bx-reveal,.whp-scroll,.whd-panel,.fb-modal,.zd-modal{overscroll-behavior-y:contain} a.skip{position:absolute;left:-9999px;top:auto;z-index:2000;background:var(--brand);color:#fff;padding:10px 16px;border-radius:10px;font-weight:700} a.skip:focus{left:16px;top:16px} /* 橙渐变上的白字:加深对比 + 轻微投影提可读性 */