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

怎么使用bootstrap里面的字体

怎么使用bootstrap里面的字体

拉丁的传说 2019-03-13 10:09:51
怎么使用bootstrap里面的字体
查看完整描述

2 回答

?
烙印99

TA贡献1829条经验 获得超13个赞

1.将雅黑字体的格式转成eot,woff,ttf,svg四种格式,工具使用fonts2u,将这四个字体保存到你的fonts文件夹里面
2.使用@font-face,格式
@font-face {
font-family: "DIY-FontName";
src:url('../fonts/quicksand-book.eot');
src:url('../fonts/quicksand-book.eot?#iefix') format('embedded-opentype'),
url('../fonts/quicksand-book.woff') format('woff'),
url('../fonts/quicksand-book.ttf') format('truetype'),
url('../fonts/quicksand-book.svg#flexslider-icon') format('svg');
font-weight: normal;
font-style: normal;
}
将里面的url部分改成你1上面保存的字体的路径;
1在你的css中css body { font-family: "DIY-FontName"; }即可。

查看完整回答
反对 回复 2019-03-20
  • 2 回答
  • 0 关注
  • 1950 浏览

添加回答

举报

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