修复样式问题
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 2s

This commit is contained in:
2026-04-15 17:10:45 +08:00
parent 9b661405c9
commit dc74a1ee10
3 changed files with 11 additions and 4 deletions

View File

@@ -12,7 +12,6 @@
var clientWidth = docEl.clientWidth;
if (!clientWidth) return;
var fontSize = clientWidth / 8.04; // 750px/7.5=100px375px/7.5=50px
console.log(fontSize,'======fontSize=====')
// 直接修改内联样式,优先级最高
docEl.setAttribute('style', 'font-size: ' + fontSize + 'px !important;');
}