1
李凌
2025-12-19 ddd6c53c29fc85d419e80e359f586619199a2579
1
2
3
4
5
6
7
8
9
const baseSize = 16
function setRem() {
    const scale = document.documentElement.clientWidth / 828
    document.documentElement.style.fontSize = baseSize * scale + 'px'
}
setRem()
window.onresize = function () {
    setRem()
}