gpt4 book ai didi

css - Bootstrap - 如何使面板内的字形居中?

转载 作者:太空宇宙 更新时间:2023-11-04 11:54:23 25 4
gpt4 key购买 nike

我正在尝试使用 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>

bootply example

关于css - Bootstrap - 如何使面板内的字形居中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30400880/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com