guanqb
2023-02-03 07f02ccd840bdd85fcba37e4e774987e41e2df16
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
}