在 twitter bootstrap 中使用不同的字体 [英] Using a different font with twitter bootstrap

查看:24
本文介绍了在 twitter bootstrap 中使用不同的字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为我的网站使用不同的字体,这不是常规的网络字体.我已经创建了 EOT 文件.现在如何将这些字体与 twitter bootstrap 集成?有人可以帮忙吗?

I want to use a different font for my website, which is not a regular webfont. I have created EOT files already. Now how can I integrate those fonts with twitter bootstrap ? Can anyone help ?

谢谢

推荐答案

我见过的最简单的方法是使用 Google 字体.

The easiest way I've seen is to use Google Fonts.

转到 Google Fonts 并选择一种字体,然后 Google 会给您一个链接以放置在您的 HTML 中.

Go to Google Fonts and choose a font, then Google will give you a link to put in your HTML.

然后将其添加到您的 custom.css 中:

Then add this to your custom.css:

h1, h2, h3, h4, h5, h6 {
    font-family: 'Your Font' !important;
}
p, div {
    font-family: 'Your Font' !important;
}

body {
   font-family: 'Your Font' !important;
}

这篇关于在 twitter bootstrap 中使用不同的字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆