bootstrap-4 - 为什么在 bootstrap 4 中去掉了字形图标

标签 bootstrap-4

在 bootstrap 3 中我们有字体,使用它我们可以使用字形图标,但在 bootstrap 4 中没有字体并且不能使用字形图标。我想知道他们为什么在 bootstrap 4 中使用字形图标和替换字形图标

最佳答案

有一个 question关于这个在 Bootstrap 仓库中。引用:

While icon fonts in general do have some issues, I don't recall that being the primary consideration for dropping them. The more pressing concern was that (A) some folks don't need/want icons (B) many folks were using other icon fonts (such as Font Awesome); for folks in these circumstances, Bootstrap including its own icon font led to unnecessary bloat. Plus, dedicated icon font projects could do a better job than us.



我建议使用 Font Awesome对于图标,如:
  • 它有近 700 个图标 (v 4.7.0)
  • 它有很好的文档
  • 正在积极开发
  • 关于bootstrap-4 - 为什么在 bootstrap 4 中去掉了字形图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47760196/

    相关文章:

    html - 使用整个导航栏更改字体和颜色时,引导导航栏品牌和链接颜色不匹配

    javascript - 使用 Angular 组件中的 (#myModal).modal ('show' ) 显示 Bootstrap 模态

    css - 如何减少引导列之间的差距

    html - 在 Bootstrap 中定义多栏以表示白天

    css - 在 Netbeans 8.2 中解析 Bootstrap 4 时出错

    angular - 在 Angular 7 中导入 bootstrap 时,Bootstrap 4 下拉菜单中断

    javascript - bootstrap 4使用js隐藏元素

    JavaScript click() 破坏了 Bootstrap 按钮的点击动画

    html - 在 Bootstrap 4 中将侧边栏拆分为页眉和页脚

    html - 我想弄清楚如何在较小的屏幕(手机、平板电脑)上查看时删除顶部边距