// 苹方黑体-准-简.ttf
@font-face {
font-family: 'PingFangSC-Regular';
src: url("引用路径/PingFangSC-Regular.ttf") format('truetype');
font-weight: normal;
font-style: normal;
}
// 苹方黑体-中黑-简.ttf
@font-face {
font-family: 'PingFangSC-Bold';
src: url("引用路径/PingFangSC-Regular2.ttf") format('truetype');
font-weight: normal;
font-style: normal;
}
使用方法
.testPingFangSCTest{
font-family: 'PingFangSC-Regular' !important;
font-size: 32rpx;
}
.testPingFangSCTest2{
font-family: 'PingFangSC-Bold' !important;
font-size: 32rpx;
}
01-19
12-09
1137
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
03-24
583
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-30
8774
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
02-22
1907
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
11-14
770
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
05-10
1946
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-03
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交