twitter-bootstrap Bootstrap css 仅使用字形

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22296701/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 20:15:42  来源:igfitidea点击:

Bootstrap css use only glyphicons

twitter-bootstrapglyphicons

提问by Vedran Maricevic.

We have a project in late development stage. It has its own css files, with many, many classes and what not in it. Original developer of that css is not available any more.

我们有一个处于开发后期的项目。它有自己的 css 文件,里面有很多很多的类以及里面没有的东西。该 css 的原始开发人员不再可用。

We just kept adding our classes and styles to a single file.

我们只是不断地将我们的类和样式添加到一个文件中。

There is a need for a nice icon set, and bootstrap has exactly what we need. I tried including bootstrap to our project already, but it is a mess when I do that. Everything is clashing I suppose.

需要一个漂亮的图标集,而 bootstrap 正是我们需要的。我已经尝试将 bootstrap 包含到我们的项目中,但是当我这样做时它是一团糟。我想一切都在发生冲突。

Is there a way to include something like minimalist bootstrap that includes only glyphicons classes?

有没有办法包含只包含字形类的极简引导程序?

回答by James Donnelly

Simply go to Bootstrap's Customization page at http://getbootstrap.com/customizeand untick everything apart from Glyphicons. This will give you a ZIP folder with everything you need for the Glyphicons and nothing more.

只需转到位于http://getbootstrap.com/customize 的Bootstrap 的自定义页面,然后取消勾选除 Glyphicons 之外的所有内容。这将为您提供一个 ZIP 文件夹,其中包含 Glyphicons 所需的一切,仅此而已。

回答by Andi Hamolli

This is kind of a late reply, but... I edited the Bootstrap.css file and left only the glyphicons.

这是一种迟到的回复,但是......我编辑了 Bootstrap.css 文件,只留下了字形。

You can download it here or use as a <link>: http://webbot.000webhostapp.com/css/glyphicons.css.

您可以在此处下载或用作<link>http: //webbot.000webhostapp.com/css/glyphicons.css