为了账号安全,请及时绑定邮箱和手机立即绑定

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 关注
  • 2112 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信