【发布时间】:2018-02-15 09:19:52
【问题描述】:
我有一个由图片组成的非常简单的下拉菜单(两行三列,每列包含一张图片)。
我想让下拉列表本身更大,同时在调整窗口大小时包含其中的所有图像。当我设置width 或height 时,当我缩小窗口时,图像会从下拉窗口中逃逸。
有没有一种好方法可以调整下拉菜单的大小,使其更大,并在其中的图像上添加一些漂亮的填充,同时保持响应能力?
<div class="btn-group">
<button type="button" id="menuIcon" dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dropdown</button>
<div class="dropdown-menu dropdown-menu-right">
<div class="row">
<div class="col-md-4">
<img src="img1.svg" style="width: 60px;"> <br>
<strong>Name</strong>
</div>
<div class="col-md-4">
<img src="img2svg" style="width: 60px;"> <br>
<strong>Name</strong>
</div>
<div class="col-md-4">
<img src="img3.svg" style="width: 60px;"> <br>
<strong>Name</strong>
</div>
</div>
<div class="row">
<div class="col-md-4">
<img src="img4.svg" style="width: 60px;"> <br>
<strong>Name</strong>
</div>
<div class="col-md-4">
<img src="img5.svg" style="width: 60px;"> <br>
<strong>Name</strong>
</div>
<div class="col-md-4">
<img src="img6.svg" style="width: 60px;"> <br>
<strong>Name</strong>
</div>
</div>
</div> <!-- Dropdown-->
</div> <!-- Btn group -->
【问题讨论】:
标签: html css twitter-bootstrap twitter-bootstrap-3