gpt4 book ai didi

html - 将 3 张 table 放在左上角,第 2 张在其下方(左侧),第 3 张放在右上角

转载 作者:行者123 更新时间:2023-11-28 16:57:58 26 4
gpt4 key购买 nike

如何将 3 个表 L1、L2、R1 放在下面指定的位置:

  1. 左上角的 L1
  2. 左侧 L1 下方的 L2
  3. 右上角的R1
table.one {
float:left;
width:45%;
}

table.two {
width:45%;
float:right;
}

https://jsfiddle.net/Lvsu0vdz/

最佳答案

无需 Bootstrap 。给你。

 .inlineTable {
display: inline-block;
}
table.one {
width: 45%;
display: inline-block;
}
table.two {
width: 45% float: left;
}
<div class="inline table">
<table class="one">
<tr>
<th>Month-1</th>
<th>Savings-1</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>

<table class="one">
<tr>
<th>Month-2</th>
<th>Savings-2</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
</div>

<table class="two">
<tr>
<th>Month-3</th>
<th>Savings-3</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>

关于html - 将 3 张 table 放在左上角,第 2 张在其下方(左侧),第 3 张放在右上角,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31768063/

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