led字体怎么设置

  1. https://files.cnblogs.com/files/hill-foryou/UnidreamLED.zip,然后解压得到  UnidreamLED.ttf
  2. 在需要使用字体的文件加上下面css代码
     
      
    1. <style>

    2. @font-face {

    3. font-family: 'LEDFont';

    4. font-size: 40px;

    5. src: url('../../../static/UnidreamLED.ttf');

    6. }

    7. </style>

    8. <style lang='scss' scoped>

    9. .total{

    10. text-align: center;

    11. color: #fff;

    12. .LEDFont{

    13. font-size: 40px;

    14. font-family: 'LEDFont'

    15. }

    16. }

    17. }

    18. </style>

 3.需要显示的数字 加上class LEDFont

 
  1. <div class="total">

  2. 测站总数:<span class="LEDFont">2356</span>

  3. </div>

效果图

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值