CSS を使用してテーブルの内容のサイズを変更し、印刷時に内容がすべて表示されるようにする方法を探していますが、個々のセルのテキストが折り返されないようにします。この例では、
<table class="datatables" id="table1">
<tr>
<td style="white-space:nowrap;">This is a table with a bunch of data that stretches off the page when printed.</td>
<td style="white-space:nowrap;">I want it to print on one line, not wrap but also be sized small enough to fit on a printed page.</td>
<td style="white-space:nowrap;">It currently cuts off most of this last column.</td>
</tr>
</table>
最後の td は印刷時にほとんど切り取られますが、これらはすべて意図したとおりに 1 行で表示されます。例として、スタイルをインラインに配置しましたが、スタイル シートを使用します。私の理想的な解決策は、折り返しなしで行ごとに 1 行に収まるようにフォントのサイズを自動的に変更することです。任意の考えをいただければ幸いです。