字体文件下载,然后解压得到 UnidreamLED.ttf
在入口文件加上下面css代码
@font-face { font-family: LEDFont; font-size: 36px; src: url('./UnidreamLED.ttf'); }
需要显示的数字 加上class LEDFont
<div class="LEDFont"> 12312 </div>
自己可以加上其他color,显示结果如下