我试图在缩略图图像上放置一个按钮,但在图像后面的标题区域添加了该按钮。 下面是代码:在缩略图图像上显示一个按钮
<div class="thumbnail">
<img class="img-responsive"alt="300x200" src="network_sec.jpg">
<button class="btn btn-default btn-warning pull-right"><span class="glyphicon glyphicon-user"></span> 10</button>
<div class="caption">
<h3 align="center">Network Security</h3>
<br>
<p>
<button class="btn btn-default btn-danger"><span class="glyphicon glyphicon-wrench"></span> Manage</button>
<button class="btn btn-default btn-danger"><span class="glyphicon glyphicon-eye-open"></span> Preview</button>
<button class="btn btn-default btn-danger"><span class="glyphicon glyphicon-pencil"></span> Edit Info</button>
</p>
</div>
</div>
我想在图像的右下部分对齐按钮。关于如何达到预期结果的任何建议?
使用位置绝对值为缩略图和缩略图和按钮容器的按钮和位置相对位置 –
试试这个 -