This commit is contained in:
root
2026-10-09 23:41:04 +08:00
parent 658b232a39
commit 4b26288098
2 changed files with 14 additions and 0 deletions
+2
View File
@@ -21,6 +21,8 @@
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; } * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; } html, body { height: 100%; }
/* 微信「字体大小」设置会放大网页文字(iOS 经 text-size-adjust);锁定 100% 使与 Safari 一致 */
html { -webkit-text-size-adjust: 100% !important; text-size-adjust: 100% !important; }
body { body {
font-family: var(--font); font-family: var(--font);
color: var(--ink); color: var(--ink);
+12
View File
@@ -1395,6 +1395,18 @@
if (e.persisted) handleCamVisible(); // bfcache 恢复(不一定伴随 visibilitychange) if (e.persisted) handleCamVisible(); // bfcache 恢复(不一定伴随 visibilitychange)
}); });
/* ─── 微信安卓端:字体大小设置不走 text-size-adjust,需经 JSBridge 重置为标准并屏蔽后续调整 ─── */
(function lockWeixinFontSize() {
function lock() {
var B = window.WeixinJSBridge;
if (!B) return;
B.invoke('setFontSizeCallback', { fontSize: 0 });
B.on('menu:setfont', function () { B.invoke('setFontSizeCallback', { fontSize: 0 }); });
}
if (window.WeixinJSBridge) lock();
else document.addEventListener('WeixinJSBridgeReady', lock, false);
})();
/* ─── 初始化 ─── */ /* ─── 初始化 ─── */
history.replaceState({ screen: 's-splash' }, ''); // 刷新后从启动页开始,历史栈的屏标记与之对齐 history.replaceState({ screen: 's-splash' }, ''); // 刷新后从启动页开始,历史栈的屏标记与之对齐
renderCamStep(); renderCamStep();