在Bootstrap框架中是通过给元素添加“glyphicon”类名来实现,然后通过伪元素“:before”的“content”属性调取对应的icon编码:

<span class="glyphicon glyphicon-search"></span>
<span class="glyphicon glyphicon-asterisk"></span>
<span class="glyphicon glyphicon-plus"></span>
<span class="glyphicon glyphicon-cloud"></span>

  在网页中使用图标也非常的简单,在任何内联元素上应用所对应的样式即可:

Bootstrap_表单_图标

Bootstrap_表单_图标

Bootstrap_表单_图标

Bootstrap_表单_图标

Bootstrap_表单_图标

相关文章:

  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
  • 2022-01-07
  • 2022-01-28
  • 2022-12-23
  • 2022-02-20
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-31
  • 2021-12-13
  • 2021-12-31
  • 2021-12-31
  • 2022-12-23
  • 2022-01-11
相关资源
相似解决方案