我想要一個按鈕組,它有多個按鈕,或者只有一個。按鈕組邊框半徑問題
這裏有一個小提琴: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>
它適用於當有多個按鈕,但是當只有一個按鈕,該按鈕沒有四捨五入四面八角。