Website call millet official fonts and SiYuanSong CSS, millet official website fonts without anti-theft chain can be directly used
Article Description:
偶然发现小米官网的字体无防盗链 可以直接使用,而且小米还储存了思源宋体。
为什么用别人的字体?本地储存字体加载起来很慢,自己服务器慢的话那就可想而知了,所以我们可以利用小米官网储存的字体加速,看链接就知道这是小米官网,放心使用~
链接中的400,600,700 可以去除其中一个,分别对应字体的粗细,看自己需求
小米字体和思源宋字体引入到网站方法:
首先将字体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}
Frequently Asked Questions FAQ
- Can free downloads or VIP member-only resources be commercialized directly?
- The resources on this site are collected and organized through the network, for personal research and study purposes only. The copyright belongs to the legal owner of the software and program code, users should verify the copyright and legality of the resources, prohibited for commercial use, illegal activities or any violation of national laws and regulations.
- Disclaimer of liability for program or code bugs, compatibility issues or functional defects, etc.
- As the resources on this site are collected and organized through the network, not the site's original, it can not fully guarantee its functionality or code compatibility. Users need to verify whether the resources meet the needs of their own, due to the following circumstances lead to losses, this site does not assume any responsibility:
Programs, source code and other computer software resources may contain code vulnerabilities (bugs), compatibility issues or functional defects left by the developer. This site does not provide free repair services for such technical defects, users need to bear the risk of debugging, modification or abandonment of the use.





