我想移动刷新和建立在右边的按钮。目前它停留在右边的顶部。
我还添加了下面的css,但看起来很奇怪。
#refresh,#build
{
line-height: 12px;
width: 18px;
font-size: 8pt;
font-family: tahoma;
margin-top: 1px;
margin-right: 2px;
position:absolute;
top:0;
right:0;
}
<div class="accordion-expand-holder">
<button type="button" id="refresh">Refresh</button>
<button type="button" id="build">Build</button>
<button type="button" class="open">Expand all</button>
<button type="button" class="close">Collapse all</button>
<div id="accordion">
</div>
</div>

发布于 2015-02-04 18:31:05
只需添加:
#refresh, #build{float:right}对于您的css,它使#build、#refresh类向右浮动。
发布于 2015-02-04 18:29:16
像这样吗?http://jsfiddle.net/xg7cr0g4/47/
#refresh, #build {
float:right;
}https://stackoverflow.com/questions/28328652
复制相似问题