html – 在twitter bootstrap中设置大小和中心警报框

html – 在twitter bootstrap中设置大小和中心警报框,第1张

概述我正在尝试居中并将大小设置警报框的80%,但它不适用于类文本中心. <div class="text-center"> <div class="alert alert-info" style="width: 80%;" role="alert"> <i class="fa fa-exclamation-triangle" aria-hidden="true"></i> <strong> 我正在尝试居中并将大小设置为警报框的80%,但它不适用于类文本中心.

<div >    <div   role="alert"> <i  aria-hIDden="true"></i> <strong>hey!</strong>  It's just an alert... </div> </div>
解决方法
<div >    <div >        <div >            <div  role="alert">                <strong>Holy guacamole!</strong> Best check yo self,you're not looking too good.            </div>        </div>  </div></div>

类文本中心按预期运行.在引导网格中包装.alert还可以限制通知的总宽度.

仔细检查您是否没有可能覆盖代码的其他CSS.这是在Bootply:http://www.bootply.com/MFv1HMC0G7中测试的

总结

以上是内存溢出为你收集整理的html – 在twitter bootstrap中设置大小和中心警报框全部内容,希望文章能够帮你解决html – 在twitter bootstrap中设置大小和中心警报框所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1088040.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-27
下一篇2022-05-27

发表评论

登录后才能评论

评论列表(0条)

    保存