我正在尝试使用 Bootstrap 3 将一个字形图标置于面板的中央。就目前而言,该图标位于面板的左侧。
非常感谢任何建议。
我的代码:
<div class="panel-body">
<span class="glyphicon glyphicon-asterisk" aria-hidden="true"></span>
最佳答案
您可以添加 Bootstrap 的 text-center
给你的 div 类:
<div class="panel-body text-center">
<span class="glyphicon glyphicon-asterisk" aria-hidden="true"></span>
</div>
关于css - Bootstrap - 如何使面板内的字形居中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30400880/