字體文件下載,然后解壓得到 UnidreamLED.ttf
在入口文件加上下面css代碼
@font-face {
font-family: LEDFont;
font-size: 36px;
src: url('./UnidreamLED.ttf');
}
需要顯示的數字 加上class LEDFont
<div class="LEDFont"> 12312 </div>
字體文件下載,然后解壓得到 UnidreamLED.ttf
在入口文件加上下面css代碼
@font-face {
font-family: LEDFont;
font-size: 36px;
src: url('./UnidreamLED.ttf');
}
需要顯示的數字 加上class LEDFont
<div class="LEDFont"> 12312 </div>
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。