在 jsfiddle 中重新创建它非常困难,所以我将继续粘贴屏幕截图、HTML 和 CSS:
我在上图中显示下拉菜单时遇到问题。
HTML 和 CSS:
<div class="row-fluid profile-gallery-image-container">
<div class="span12">
<a href="#"><img src="#"/></a>
<div class="image-options">
<div class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-cog icon-white"></i></a>
<ul class="dropdown-menu">
<li><a href="javascript:void(0);">test</a></li>
</ul>
</div>
</div>
<div class="delete-image">
<a href="javascript:void(0);"/></a>
</div>
</div>
</div>
.profile-gallery-image-container {
max-width: 130px;
max-height: 110px;
margin-bottom: 0px;
display: inline-block;
position: relative;
border: 2px solid rgba(140,140,140,1);
z-index: 0;
}
.image-options {
float: right;
top: 0px;
right: 0px;
position: absolute;
padding-top: 2px;
border-left: 2px solid rgba(255,128,64,1);
border-bottom: 2px solid rgba(255,128,64,1);
width: 15px;
height: 15px;
}
我究竟做错了什么?