图标
通过 Bootstrap 使用外部图标库的指南和建议。
虽然 Bootstrap 默认不包含图标集,但我们拥有名为 Bootstrap Icons 的完善图标库。请随意使用它们或项目中的任何其他图标集。我们在下面提供了 Bootstrap 图标和其他首选图标集的详细信息。
¥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.
哦,我们有没有提到它们是完全开源的?就像 Bootstrap 一样,我们的图标集已获得 MIT 许可,可供所有人使用。
¥Oh, and did we mention they’re completely open source? Licensed under MIT, just like Bootstrap, our icon set is available to everyone.
了解更多关于 Bootstrap 图标的信息,包括如何安装和推荐使用方法。
¥Learn more about Bootstrap Icons, including how to install them and recommended usage.
备择方案
¥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.