gpt4 book ai didi

jquery - 右上角的按钮位置

转载 作者:太空宇宙 更新时间:2023-11-04 03:18:21 24 4
gpt4 key购买 nike

我想在右上角移动刷新和构建按钮。目前它停留在右上角。

我还添加了以下 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>

enter image description here

最佳答案

只需添加:

#refresh, #build{float:right}

对于您的 css,它使#build、#refresh 类向右浮动。

关于jquery - 右上角的按钮位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28328652/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com