gpt4 book ai didi

html - 更改按钮和文本相对于表格的位置

转载 作者:太空宇宙 更新时间:2023-11-03 23:35:37 25 4
gpt4 key购买 nike

我有一张 table ,我在右边的按钮上有一张 table 在左侧有一些文字。(它们平行)目前它非常靠近下面的 table ,我想移动文本和按钮有点向上,我应该怎么做?

<h4 style="display:inline">Users Table</h4>
<div style="float:right" class="text-right">

<a href="#" id="addRow"><i class="glyphicon glyphicon-plus"></i>&nbsp;&nbsp;New</a>

</div>

//Here start the table

@* List of users *@
<table class="table table-striped ">

如果我使用 <br />它向上移动了很多,有办法按像素来做吗?

最佳答案

只需在文本和按钮周围创建一个 div,然后对其应用一些边距。

<div style="margin-bottom: 20px">
<h4 style="display:inline">Users Table</h4>
<div style="float:right" class="text-right">

<a href="#" id="addRow"><i class="glyphicon glyphicon-plus"></i>&nbsp;&nbsp;New</a>

</div>
</div>

//Here start the table

@* List of users *@
<table class="table table-striped ">

关于html - 更改按钮和文本相对于表格的位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24228688/

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