gpt4 book ai didi

css - Bootstrap 按钮之间的间距

转载 作者:行者123 更新时间:2023-12-04 22:44:31 26 4
gpt4 key购买 nike

当我使用以下代码时,如何确保按钮之间有间距

<div class="container">
<div class="jumbotron">
<button ng-repeat="char in alphabet" ng-click="filterByAlphabet(char)">{{char}}</button>
<br><br>
<span ng-repeat="genre in genres">
<button class="btn btn-xs" ng-click="filterByGenre(genre)">{{genre}}</button>
</span>

</div>

最佳答案

'btn-toolbar' 一举成功。无需手动设置 CSS

<div class="btn-toolbar">
<button id="button1" class="btn btn-primary">Button 1</button>
<button id="button2" class="btn btn-primary">Button 2</button>
<button id="button3" class="btn btn-primary">Button 3</button>
</div>

关于css - Bootstrap 按钮之间的间距,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39266862/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com