如何在Twitter Bootstrap 3中将按钮居中?

如何在Twitter Bootstrap 3中将按钮居中?,第1张

如何在Twitter Bootstrap 3中将按钮居中

用“文本中心”类在div中包装Button。

只需更改此:

<!-- wrong --><div >    <button id="singlebutton" name="singlebutton" >Next Step!</button></div>

对此:

<!-- correct --><div >     <button id="singlebutton" name="singlebutton" >Next Step!</button> </div>

编辑

作为 BootstrapV4

center-block
滴入#19102赞成
m-*-auto



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

原文地址: https://outofmemory.cn/zaji/5641317.html

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

发表评论

登录后才能评论

评论列表(0条)

保存