ここではちょっとばかだと感じる。私は第1の<td>
をテーブルの70-80%に広げ、第2と第3のテーブルの間に残りのスペースを分割します。HTMLテーブル、望ましくないcolspan
は私が<th>
colspan
から6を設定し、最初の<td>
4のcolspan
を与えることが、私はこれを実現するために設定することができるようになると思ったが、テーブルの半分を取るように見える、そして最後の2 <td>
です異なる幅。どのようにこれを解決するための任意のアイデア?
HTML
<table class="table table-record no-margin-bottom">
<thead>
<tr>
<th colspan="6" class="table-tab-active--grey font-weight-bold text-md-center">Tasks</th>
</tr>
</thead>
<tbody>
<tr class="bg--lighter-grey txt--darker-blue" ">
<td colspan="4">Lorem Ipsum</td>
<td colspan="1" class="text-uppercase font-weight-bold">Lorem</td>
<td colspan="1" class="font-weight-bold text-uppercase no-padding"><button class="btn btn--orange btn-block">Lorem Ipsum</button></td>
</tr>
<tr class="bg--lighter-grey txt--darker-blue" ">
<td colspan="4">Lorem Ipsum</td>
<td colspan="1" class="text-uppercase font-weight-bold">Lorem</td>
<td colspan="1" class="font-weight-bold text-uppercase no-padding"><button class="btn btn--lighter-grey btn-block">Button</button></td>
</tr>
</tbody>
</table>
'colspan'を使って達成できないのですか? –
ああ...確信しています。私はそれがあなたが指定したものであるから%を望んでいると思った。個人的には、私は便益を見ていないので、私は決して使用しないで、それだけでコードです。ここでは、私はまだそれがパーセンテージを使用することに比べてclunkyだと思うが、colspanものの本当に良い概要です。しかし、私はHTMLの専門家ではありません。 http://stackoverflow.com/questions/9830506/how-do-you-use-colspan-and-rowspan-in-html-tables – rob