[英]Bootstrap 3 forms - How to add bottom border to form fields? (To space them out)
How do you add a bottom border in bootstrap 3 to forms? 如何在引导程序3中向表单添加底部边框? Specifically when using embedded ruby? 特别是在使用嵌入式红宝石时? I simply cannot figure it out spent several hours and nothing seems to work... 我根本无法弄清楚花了几个小时,而且似乎什么也没用。
if I get it correctly this is what you are looking for. 如果我正确理解,这就是您要寻找的。
form{
border-bottom: 2px solid #777;
}
[a link] ( http://jsfiddle.net/MQP2U/ ) [链接]( http://jsfiddle.net/MQP2U/ )
Let me know if you have some other issue. 让我知道您是否还有其他问题。
Add a class to the form-group with the border styling you want: 使用所需的边框样式将一个类添加到表单组:
HTML: HTML:
<div class="form-group border">...</div>
CSS: CSS:
.border{
border-bottom:1px solid #ddd;
padding-bottom:20px
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.