私はこのようにDropdownをカスタマイズしようとします。私はそれが良いスタートだと思う。
.dropdown-menu .item {
margin: 10px;
text-align: center;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Action <span class="caret"></span>
</button>
<div class="dropdown-menu row">
<div class="item col-xs-4">
ICON
<strong>Name</strong>
</div>
<div class="item col-xs-4">
ICON
<strong>Name</strong>
</div>
<div class="item col-xs-4">
ICON
<strong>Name</strong>
</div>
<div class="item col-xs-4">
ICON
<strong>Name</strong>
</div>
<div class="item col-xs-4">
ICON
<strong>Name</strong>
</div>
<div class="item col-xs-4">
ICON
<strong>Name</strong>
</div>
</div>
</div>
ブートストラップは非常にこの組み込みのようなものを持っていません。 – Blazemonger
モーダルをボタンに付けることができない場合は、ボタンの子をモーダルにすることができます。ボタンの 'position:relative'とモーダルの' position:absolute'を作ります。そうすることで、モーダルの位置はボタンに相対的なままになります。 –
私は、いくつかのカスタムスタイリングでドロップダウンまたはPopoverを使用します。 – juzraai