我有一些引导代码有单选按钮来选择颜色:
css看起来像:
.color {
height: 20px;
width: 25px;
display: inline-block;
}
.red { background: red; } /* And I'll have a blue one, and a green one */
现在,单选按钮有各自的颜色跨度向右。然而,我希望单选按钮在其各自的颜色跨度下水平居中。
我在引导巨型加速器中的一个按钮的中心有问题。我已经尝试过在Stack Overflow上使用文本居中对齐,边距自动0px和其他解决方案。我把我的按钮放在一个容器里,这个容器在巨型加速器里面。我不想将容器居中,因为这样巨型加速器上的文本也会居中,这是我不想要的。我只想让按钮居中。
这是我的HTML代码
<div class="jumbotron">
<div class="container" >
<h2>Keep your heart as if you have just entered this