1
A
回答
1
你必須改變一些類。在表格中您有類form-inline
。你必須擺脫那個類,因爲所有元素都內聯在一起。
在輸入類.form-control
設置爲寬度:100%;默認情況下,所以你必須清理那個類。
HTML
<div aria-hidden="false" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="trialModal" class="modal fade in" style="display: block;">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button>
<h4 class="modal-title">Free Trial!</h4>
</div>
<div class="modal-body">
<p style="display:none" id="confirm_message">Thanks for your interest in OurProduct.</p>
<p style="display:none" id="error_message"></p>
<form class="">
<div class="form-group">
<label for="mail">Email</label><br><input placeholder="[email protected]" id="mail" class="form-control" type="email"></div>
<div class="form-group">
<input class="" id="agree_terms" value="1" type="checkbox">I confirm that I am over 13 years of age and agree to the <a id="modal_privacy_link">Terms and Conditions and Privacy Policy</a>.
</div>
</form>
<div class="modal_privacy">
<h2>Terms and Conditions and Privacy Policy</h2>
<p>We may send you information about our products and services and may contact you about new features or products in which we believe you may be interested. We also may use your contact information for marketing and other purposes. Although we do not currently rent, sell, or otherwise share your information with third parties for purposes unrelated to our products and services, we may do so in the future. If you do not want your information to be shared, you should contact us at <a href="mailto:[email protected]">[email protected]</a>. The supply of our products and services will not be conditional upon you consenting to the collection, use, or disclosure of personally identifiable information beyond that required to provide our products, services, or other related purposes.</p>
</div>
</div>
<!-- create new form in block here. just email. call new module to send email and create user--><div class="modal-footer">
<button id="email_link" class="btn btn-default" type="button">Email me a link</button><br><button id="download_trial_64" class="btn btn-default" type="button">Download 64-bit trial</button><br><button id="download_trial_32" class="btn btn-default" type="button">Download 32-bit trial</button><br><button id="working_link" class="btn btn-default" type="button" style="display: none"><span class="glyphicon glyphicon-refresh spinning"></span> Processing...</button>
</div>
</div>
<!-- /.modal-content --></div>
<!-- /.modal-dialog --></div>
0
作爲<label>
標籤之間的良好UX實踐和HTML語法,你應該把你的消息,真正把該框時你點擊消息。
<div class="form-group">
<input class="" id="agree_terms" value="1" type="checkbox">
<label for="agree_terms">I confirm that I am over 13 years of age and agree to the <a id="modal_privacy_link">Terms and Conditions and Privacy Policy</a>.</label>
</div>
相關問題
- 1. 對齊單選按鈕引導問題
- 2. IE7複選框對齊問題
- 3. Bootstrap - 複選框左對齊問題
- 4. 複選框對齊問題CSS
- 5. 對齊問題與引導
- 6. 引導左對齊導航問題
- 7. 複選框對齊
- 8. ASP.NET複選框文本左對齊或左對齊複選框
- 9. Twitter的引導對齊問題
- 10. 輸入附加引導對齊問題
- 11. 引導網格對齊問題
- 12. 與引導程序對齊問題
- 13. 引導網格列對齊問題
- 14. 引導網格和行對齊問題
- 15. 頁腳列對齊問題引導3
- 16. 使用引導將右邊的複選框對齊
- 17. 引導複選框輸入垂直對齊
- 18. 引導程序複選框未對齊,形式爲
- 19. 面對IE8和Firefox對齊問題的複選框的文本
- 20. CSS對齊問題的文本框和引導按鈕
- 21. 問題複選框與Ember.js引導程序複製
- 22. 複選框對齊權
- 23. Twitter Bootstrap對齊複選框
- 24. 對齊連接複選框
- 25. 在對話框中對齊複選框
- 26. 對齊自定義複選框問題css
- 27. 對齊的Asp複選框列表的問題
- 28. css框對齊問題
- 29. 列表框對齊問題
- 30. aacplus框架對齊問題
原來是這樣;爲了測試目的,我刪除了標籤,看看是否有助於對齊。它沒有。 – EmmyS