shuishen
2023-01-07 1932115cd2a69a76ae20ddf56ebfa96df49dbfc8
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
}