如何在行内列内的按钮下方将文本居中?我想将<small>
标签内的文本恰好在按钮下方的中心对齐:
HTML:
<div class="container">
<div class="row">
<div class="col-md-9 vcenter">
<h2>Talk to us about your <span class="u">next</span> building project. </h2>
</div>
<div class="col-md-3">
<button class="btn btn-quote">Get A Free Quote</button>
<small>We will contact you within 24 hours.</small>
</div>
</div>
</div>
按钮在中间吗?如果是这样,你只要给Text-align: center
你的<small>
股利。
你能给你想要的行为的图片吗?
编辑:即使这样,文本也不在中间,您可能要添加一个或两个:display: block
和/或width: 100%
到<small>
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句