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