我想要一个按钮组,它有多个按钮,或者只有一个。按钮组边框半径问题
这里有一个小提琴:http://jsfiddle.net/jssq20gn/
这里的HTML:
<!--THIS IS HOW IT SHOULD WORK FOR WHEN THERE IS THREE BUTTONS-->
<article>
<div class='btn-group'>
<a class='button'>Test</a>
<a class='button'>Test</a>
<a class='button'>Test</a>
</div>
</article>
<!--THIS WORKS TOO-->
<article>
<div class='btn-group'>
<a class='button'>Test</a>
<a class='button'>Test</a>
</div>
</article>
<!--THIS DOESN'T WORK, should have rounded borders-->
<article>
<div class='btn-group'>
<a class='button'>Test</a>
</div>
</article>
它适用于当有多个按钮,但是当只有一个按钮,该按钮没有四舍五入四面八角。