我想将 Bootstrap 字形颜色更改为“黄色”,因为当前颜色显示为白色,看起来像删除按钮。我如何更改 glyphicon-folder-close
的颜色或使用任何其他能更好地显示文件夹图像的 glyphicon?
main.html
<button type="button" class="btn btn-info btn-lg" ng-click="serverFiles()" style="margin-left: 10px"><span class="glyphicon glyphicon-folder-close"></span></button>
最佳答案
您还可以通过为绿色添加“text-success”类、为红色添加“text-danger”类等来更改图标/文本。这将更改图标本身的颜色。
<span class="glyphicon glyphicon-usd text-success"></span>
这里也有回答。
Change the color of glyphicons to blue in some- but not at all places using Bootstrap 2
关于html - 如何更改 Bootstrap 字形图标的颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38979338/