css - 在不影响布局的情况下将 glyphicon 添加到不是使用 bootstrap 创建的网页

标签 css twitter-bootstrap glyphicons

我有一个旧网站,我想向该网站的页面添加一个字形。

我无法安装 bootstrap(将 bootstrap.js 和 bootstrap.css 链接到此页面),因为它会更改页面上的所有样式元素。

有没有办法只添加“字形图标功能”?

最佳答案

您可以在您需要的组件上构建您的 Bootstrap

http://getbootstrap.com/customize/

例如对于only glyphicon,您可以只选中glyphicon 复选框并下载。 此设置的直接 url 是

http://getbootstrap.com/customize/?id=428c81f3f639eb0564a5

向下滚动并下载它。

您只下载两个文件夹,其中包含 glyphicon (bootstrap.min.css) 和字体文件的 css(总共只有 170 Kb)。

关于css - 在不影响布局的情况下将 glyphicon 添加到不是使用 bootstrap 创建的网页,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26137413/

相关文章:

css - AngularJS:自定义字体图标

css - 使 div(在 css 中)自下而上增长?如何?

javascript - 手机菜单无法实时触发

javascript - 如何防止 Bootstrap 导航栏按钮堆叠

html - Bootstrap 跨越跨度

twitter-bootstrap - Bootstrap 的 3.x 面板,高度为 100%

html - 使用 CSS 在列表中布局图像的最佳方式

html - 我想在我的 HTML 文件中链接到我的外部 CSS 文件

css - 找不到 Bootstrap 中的一些 Glyphicons

html - 如何制作看起来不像按钮的 Glyphicon 按钮