1
guanqb
2023-04-04 e2ed1e9cf408fdc2fdb3e9f9b592b959a9af59fc
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
}