响应式Bootstrap 3形式效果不佳

问题描述

我正在使用Bootstrap 3.3(该版本是必需的)。我需要创建此表单(参见图片),尽管进行了几次尝试,但还是没有运气。我目前遇到的是一团糟。

.headerffa .content a br {
    display: inline;
}

.header .content a br {
    display: inline;
}

.acctcreation {
    background-color: #fff;
    border: 1px solid #002150;
    padding: 15px;
    margin:0 auto;
    max-width: 450px;
}

.homeherobutton {
    margin-bottom: 25px;
}

.homeloginbtn {
    margin-right: 35px;
}

.homeform {
    font-size: 21px;
}

.formdisclaimer {
    padding-top: 8px;
    font-size: 0.80em !important;
}

input,textarea,select {
    /*---max-width: 280px;---*/
    padding: 0;
    margin: 0;
    Box-sizing: border-Box;
}

.acctcreation .form-group [class*="col-"] {
    padding-left: .5%;
    padding-right: .5%;
}

.acctcreation .form-group [class*="col-"] .form-group {
    margin-left: -.5%;
    margin-right: -.5%;
}

.acctcreation .form-group [class*="col-"] .form-group {
    margin-bottom: 0
}

@media (min-width:768px) {
    .acctcreation .form-group [class*="col-"]
        margin-bottom: 0
    }
}
<div class="col-md-12 col-md-offset-0 col-sm-8 col-sm-offset-4 content" role="main">
    <form class="form-group acctcreation">
    <div class="form-group">
    <p class="homeform"><strong>Account Creation</strong></p>
    </div>
    <div class="form-group">
    <div class="col-sm-3">
    <label for="exampEmail">Email</label>
    </div>
    </div>
    <div class="form-group">
    <div class="col-sm-3">
    <input type="email" class="form-control" id="exampleEmail" aria-describedby="email" placeholder="">
    </div>
    <div class="col-sm-3"><span class="glyphicon glyphicon-question-sign"></span>
    </div>
    <div class="col-sm-3">Forgot
    </div>
    </div>
    <div class="form-group">
    <div class="col-sm-3"><label for="exampleUserID">User ID</label>
    </div>
    </div>
    <div class="form-group">
    <div class="col-sm-3">  
    <input type="userID" class="form-control" id="UserID" placeholder="">
    </div>
    <div class="col-sm-3"><span class="glyphicon glyphicon-question-sign"></span>
    </div>
    <div class="col-sm-3">Forgot
    </div>
    </div>
    <div class="form-group">
    <div class="col-sm-3"><label for="examplePassword">Password</label>
    </div>
    </div>
    <div class="form-group">
    <div class="col-sm-3">
    <input type="password" class="form-control" id="Password" placeholder="">
    </div>
    <div class="col-sm-3"><span class="glyphicon glyphicon-question-sign"></span>
    </div>
    <div class="col-sm-3">Forgot
    </div>
    </div>
    <div class="form-group">
    <div class="col-sm-3">
    <label for="examplePhone">Phone</label>
    </div>
    </div>
    <div class="form-group">
    <div class="col-sm-3">
    <input type="phone" class="form-control" id="Phone" placeholder="">
    </div>
    <div class="col-sm-3"><span class="glyphicon glyphicon-question-sign"></span>
    </div>
    <div class="col-sm-3">
    </div>
    </div>
    <div class="form-group">
    <p class="formdisclaimer">By clicking Create Account,you agree to our Use Agreement and Privacy Policy.</p>
    </div>
    <div class="form-group">
    <button type="submit" class="homeloginbtn button">Login</button><button type="submit" class="button">Create Account</button>
    </div>
    </form>
</div>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)