在 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对于图标,如:
关于bootstrap-4 - 为什么在 bootstrap 4 中去掉了字形图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47760196/