我正在尝试在基础 6 中集中一个 anchor 标记,我已经尝试了 float-center类,但不是集中化而是扩展:
我的代码
<div class="column">
<!-- some html -->
<a class="large success button float-center">Sign Up</a>
</div>
最佳答案
因为 float-center
有 display:block
css 属性。从 a
标签中移除 float-center
并在 column
div 中添加 text-center
类。
<div class="column text-center">
<!-- some html -->
<a class="large success button ">Sign Up</a>
</div>
关于html - 站点 : How to centralize anchor tags? 的基金会 6,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38076706/