图标
通过 Bootstrap 使用外部图标库的指南和建议。
虽然 Bootstrap 默认不包含图标集,但我们有自己的综合图标库,称为 Bootstrap Icons。你可以随意在项目中使用它们或任何其他图标集。我们在下方提供了 Bootstrap Icons 和其他首选图标集的详细信息。
🌐 While Bootstrap doesn’t include an icon set by default, we do have our own comprehensive icon library called Bootstrap Icons. Feel free to use them or any other icon set in your project. We’ve included details for Bootstrap Icons and other preferred icon sets below.
虽然大多数图标集包含多种文件格式,但我们更喜欢 SVG 实现,因为它具有改进的可访问性和矢量支持。
🌐 While most icon sets include multiple file formats, we prefer SVG implementations for their improved accessibility and vector support.
Bootstrap 图标
🌐 Bootstrap Icons
Bootstrap Icons 是一个不断增长的 SVG 图标库,由 @mdo 设计,并由 Bootstrap 团队 维护。这个图标集的起源来自 Bootstrap 自身的组件——我们的表单、轮播等。Bootstrap 开箱即用的图标需求非常少,所以我们不需要太多。然而,一旦我们开始,就停不下来地制作更多图标。
🌐 Bootstrap Icons is a growing library of SVG icons that are designed by @mdo and maintained by the Bootstrap Team. The beginnings of this icon set come from Bootstrap’s very own components—our forms, carousels, and more. Bootstrap has very few icon needs out of the box, so we didn’t need much. However, once we got going, we couldn’t stop making more.
哦,我们有提到它们是完全开源的吗?采用 MIT 许可证,就像 Bootstrap 一样,我们的图标集对所有人开放。
🌐 Oh, and did we mention they’re completely open source? Licensed under MIT, just like Bootstrap, our icon set is available to everyone.
了解有关 Bootstrap 图标的更多信息,包括如何安装它们以及推荐的使用方法。
备择方案
🌐 Alternatives
我们已亲自测试并使用这些图标集作为 Bootstrap 图标的首选替代方案。
🌐 We’ve tested and used these icon sets ourselves as preferred alternatives to Bootstrap Icons.
更多的选择
🌐 More options
虽然我们自己还没有尝试过,但它们看起来很有前景,并且支持多种格式,包括 SVG。
🌐 While we haven’t tried these out ourselves, they do look promising and provide multiple formats, including SVG.