1
guanqb
2024-01-20 f13afcb61276061871b30bce17a7877287df0b67
1
2
3
4
5
6
export function fontSize (size) {
    let clientHeight = window.screen.availHeight
    if (!clientHeight) return
    let fontSize = size / 1080 * clientHeight
    return fontSize
}