1、字体下载
2、在style里引入字体
@font-face{font-family:electronicFont;src:url(../../assets/font/DS-DIGIT.TTF)}
3、为元素设置电子数字字体
.number {
font-size: 30px;
color: #0e94ea;
font-family:electronicFont;
font-weight: bold;
}
4、效果图
1、字体下载
2、在style里引入字体
@font-face{font-family:electronicFont;src:url(../../assets/font/DS-DIGIT.TTF)}
3、为元素设置电子数字字体
.number {
font-size: 30px;
color: #0e94ea;
font-family:electronicFont;
font-weight: bold;
}
4、效果图