1
jxdnsong
2023-04-05 0448cb8e5be25c7e29a86142deaa97e4d2e8315f
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
}