uniapp使用外部字体
1.准备字体ttf文件
2.样式文件引入
@font-face {
font-family: 'youshe';
src: url('~@/static/youshe.ttf');
}
3.使用
.des {
font-family: 'youshe';
font-size: 7.69rpx;
font-weight: 400;
}
uniapp使用外部字体
1.准备字体ttf文件
2.样式文件引入
@font-face {
font-family: 'youshe';
src: url('~@/static/youshe.ttf');
}
3.使用
.des {
font-family: 'youshe';
font-size: 7.69rpx;
font-weight: 400;
}