0
この表のテキストオーバーフローデータを使用したいのですが、私はそれを動作させるために多くの方法を試していますが、それはFirefoxでも動作します。 IE。このケースではテキストオーバーフローはどうですか?
そして、方法は使用するブートストラップではありません。
この場合、適切なCSSを使用してください。
これは私のCSSコードの例です:デフォルトでは
.table {
width: 450px;
max-width: 450px;
}
.col-1 {
width: 30%;
max-width: 30%;
overflow: hidden;
text-overflow: clip !important;
white-space: nowrap;
word-wrap: break-word;
}
.col-2 {
width: 40%;
max-width: 40%;
overflow: hidden;
text-overflow: clip !important;
white-space: nowrap;
word-wrap: break-word;
}
.col-3 {
width: 30%;
max-width: 30%;
overflow: hidden;
text-overflow: clip !important;
white-space: nowrap;
word-wrap: break-word;
}
<table class="table" border="0" cellspacing="5" cellpadding="5">
<tbody>
<tr>
<td class="col-1">longgggggggggggggg gggggggggggg</td>
<td class="col-2">longgggggggggggggg ggggggggggggg</td>
<td class="col-3">longgggggggggggggg ggggggggggggg</td>
</tr>
<tr>
<td class="col-1">longerrrrrrrrrrrrrrrrrrrrrrrrrr rrrrrrrrrrrrrrrrrrrrrrr</td>
<td class="col-2">longerrrrrrrrrrrrrrrrrrrrrrrrrr rrrrrrrrrrrrrrrrrrrrrrr</td>
<td class="col-3">longerrrrrrrrrrrrrrrrrrrrrrrrrr rrrrrrrrrrrrrrrrrrrrrrr</td>
</tr>
<tr>
<td class="col-1">longestttttttttttttttttttttttttttttttt tttttttttttttttttttttttttttttt</td>
<td class="col-2">longestttttttttttttttttttttttttttttttt tttttttttttttttttttttttttttttt</td>
<td class="col-3">longestttttttttttttttttttttttttttttttt tttttttttttttttttttttttttttttt</td>
</tr>
</tbody>
</table>
あー!!!、どうもありがとうございました。 – ThunderBirdsX3