如何将3个表L1,L2,R1放在下面指定的位置:
table.one {
float:left;
width:45%;
}
table.two {
width:45%;
float:right;
}
答案 0 :(得分:1)
无需引导程序。你走了。
.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>