html - 非输入的 Bootstrap 输入组插件图标

标签 html css twitter-bootstrap icons

Bootstrap 有一个内置的按钮图标:http://getbootstrap.com/components/#input-groups

我想知道是否可以保留这种风格的图标,但不能用于输入?例如,我想让一个图标以相同的样式显示为面板标题的一部分:http://getbootstrap.com/components/#panels , 还有可能改变图标部分的背景颜色吗?

我需要的是:http://imgur.com/fRacpMa

所以我想这不是内置功能。我自己为此构建一个 CSS 怎么样?

最佳答案

是的,请参阅 Glyphicons文档的一部分。 Demo

<div class="panel panel-default">
  <div class="panel-heading">
    <h3 class="panel-title"><span class="glyphicon glyphicon-music"></span> Panel title</h3>
  </div>
  <div class="panel-body">
    Panel content
  </div>
</div>

CSS 改变颜色。

.glyphicon {
    color: #ff0000;
}

关于html - 非输入的 Bootstrap 输入组插件图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23521488/

相关文章:

html - CSS + IE 6 = Background-Image 不显示(并且拔头发)

html - 当鼠标悬停在 html/CSS/angular/bootstrap 中时,扩展树的长文本行(嵌套的 HTML 列表)

jquery - 另一幅图像的背景不透明度和模糊

javascript - 在 Bootstrap 中禁用复选框标签并将其灰显

带对象的 CSS 转换

Firefox 和 IE 中的 CSS 打印问题

html - 标题和元标记装饰(样式)

twitter-bootstrap - Uncss Twitter Bootstrap 模态

css - summernote v0.6.16 上的问题,当我单击链接或图片功能时,模态框在另一个模态框内打开

javascript - 如何使用 HTML5 与 UDP 套接字通信?