Twitter bootstrap btn-group-vertical在按钮之间有边距 [英] Twitter bootstrap btn-group-vertical with margin in between the buttons

查看:257
本文介绍了Twitter bootstrap btn-group-vertical在按钮之间有边距的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有简单的方法在twitter bootstrap btn-group-vertical按钮之间添加一些边距,并使它们都有圆角?

Is there an easy way to add some margin between the twitter bootstrap btn-group-vertical buttons, and to make them all have rounded corners?

我的第一次尝试只是在它们之间添加一些边距,使用css,但是我看到,除了第一个和最后一个,没有一个圆角,所以,而不是玩,我希望有一个体面的方式要完成这个...

My first attempt was to just add some margin between them, using css, but then I saw that, except for the first and last one, none of them had rounded corners, so instead of "playing on", I hope there is a "decent" way to accomplish this...

推荐答案

我认为这是最简单的方法。

I think this is the easiest way to do that.

CSS

.btn-group-vertical > button{
    margin-bottom:10px;
    border-radius:10px !important;
}

这篇关于Twitter bootstrap btn-group-vertical在按钮之间有边距的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆