diff --git a/index.html b/index.html index 2354333..4af6b98 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ - + LionWebsite diff --git a/src/styles/theme.css b/src/styles/theme.css index 8a7bd5e..433471a 100644 --- a/src/styles/theme.css +++ b/src/styles/theme.css @@ -1073,3 +1073,21 @@ body { padding: 10px 12px 8px; } } + +/* ========== iOS focus-zoom guard ========== + iOS Safari 会在聚焦字号小于 16px 的输入控件时放大整个页面,而且会忽略 + viewport 里的 user-scalable=no / maximum-scale。把可聚焦控件的字号固定到 + 16px 才是可靠解法;按钮、标签等展示型元素不受影响。 + + 这里用 !important 是必要的:Element Plus 的 .el-select--small / .el-input--small + 等变体自带 13~14px 规则,优先级高于普通选择器。 */ +input:not([type="checkbox"]):not([type="radio"]), +textarea, +select, +.el-input__inner, +.el-textarea__inner, +.el-select__input, +.el-select__wrapper, +.el-input-number .el-input__inner { + font-size: 16px !important; +}