亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

scss @mixin定義的@font-face怎么使用啊

scss @mixin定義的@font-face怎么使用啊

@mixin font-face($font-family, $file-path, $weight: normal, $style: normal ) { ?@font-face { ? ?font-family: $font-family; ? ?font-weight: $weight; ? ?font-style: $style; ? ?src: url('#{$file-path}.eot'); // 1 ? ?src: url('#{$file-path}.eot?#iefix') ? ? ? ? ? ? ? format('eot'), // 2 ? ? ? ? url('#{$file-path}.svg##{$font-family}') ? ? ?format('svg'), // 3 ? ? ? ? url('#{$file-path}.woff') ? ? ? ? ? ? ? ? ? ? format('woff'), // 4 ? ? ? ? url('#{$file-path}.ttf') ? ? ? ? ? ? ? ? ? ? ?format('truetype'); //5 ?}}比如這種,定義的是css3的字體文件。我想在div的font-family里面使用自己定義的字體要怎么使用例如:div{font-family: @include font-face();? //然后括號里面傳參數?}
查看完整描述

目前暫無任何回答

  • 0 回答
  • 0 關注
  • 2199 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號