以mailchimp的形式集中输入

时间:2015-07-28 09:32:46

标签: html css twitter-bootstrap alignment

我的输入居中有问题[type =“submit”]。 我也在我的网站上使用bootstrap。 我尝试过很多方法但似乎没什么用。有人可以帮帮我吗?

                                                                                                                                                                                                                                                                                                                                          
 .centerButton{
    max-width: 700px;
    text-align: center;
    position: relative;
}
.btnsubmit{
    border-radius: 5px;
    height: 60px;
    color: white;
    background-color: #60C3AD;
    border: none;
    font-family: 'Arial', sans-serif;
    font-weight: lighter;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 15px;
}

1 个答案:

答案 0 :(得分:1)

使用以下链接进行检查,您可以根据需要在中心找到一个按钮。

http://jsfiddle.net/wmDL8/26/

<div id='toolbar'>
<div class='text-center'>
    <div class="btn">
        <input type="button" class="btn btn-default"/>

    </div>
</div>