shuishen
2023-07-07 c5ff93f67775f4a2bc0ffabd6c24cb46e5226df0
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
}