小米字体和思源宋字体引入到网站方法:

首先将字体css引入到网站

<link rel="stylesheet" href="https://font.sec.miui.com/font/css?family=MiSans:400,700:MiSans" />

添加调用字体到全局css

* {font-family: MiSans} 

思源宋字体方法同上

//css引用
<link rel="stylesheet" href="https://font.sec.miui.com/font/css?family=Source_Han_Serif:400,600:Source_Han_Serif" />

//css调用
* {font-family: Source Han Serif}

作者:道言 https://www.bilibili.com/read/cv28524456/ 出处:bilibili

Leave a reply

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> 

required