@font-face {
font-family: 'MiSans';
src: url('/font/MiSans-Regular.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Robot';
src: url('/font/roboto-latin-400-normal.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}
:lang(en) {
font-family: 'Robot', sans-serif;
}
:lang(zh) {
font-family: 'MiSans', sans-serif;
}
能否做到用户代理为 zh 环境时,也只加载 MiSans 字体,不用再加载英文字体?
如果可以的话,应该怎么实现呢?