btn-group
上课。
JSFiddle DEMO
<button class="btn btn-primary">Button without outline</button>
<hr />
<div class="btn-group btn-group-toggle d-flex" data-toggle="buttons">
<label class="btn btn-primary w-100 active">
<input type="radio" name="options" id="option1" autocomplete="off"> Button with outline
</label>
<label class="btn btn-primary w-100">
<input type="radio" name="options" id="option2" autocomplete="off"> Button with outline
</label>
</div>
CSS:
body {
margin: 1rem;
}
[class*="btn-"]:focus {
-webkit-box-shadow: none;
box-shadow: none
}