Tabelle mit horiz. Scrollbalken
bearbeitet von
Hallo MrMurphy,
so funktioniert es:
~~~html
<table>
<thead>
<tr>
<th>MySQL</th>
<th>MariaDB</th>
</tr>
</thead>
<tbody>
<tr>
<td style="vertical-align:top; overflow-x:scroll; max-width:450px;"><pre class="grey"><span class="notranslate">create_myisam_from_heap()
/**
If a MEMORY table gets full, create a disk-based table and copy all rows
to this.
....
*/
</span></pre></td>
<td style="vertical-align:top; overflow-x:scroll; max-width:450px;"><pre class="grey"><span class="notranslate">create_internal_tmp_table_from_heap()
/*
If a HEAP table gets full, create a internal table in MyISAM or Maria
and copy all rows to this
*/
</span></pre></td>
</table>
~~~
Vermutlich braucht man die Breite der Zelle und die Anweisung overflow.
Danke.
AugustQ
PS: ich habe jetzt einen horizontalen und einen vertikalen Scrollbalken. Der vertikale Balekn kommt vom pre-Element.
> Hallo
>
> > Wie mache ich dies?
>
> Du hast keine Tabellendaten, also ist das table-Element falsch. Zumal das table-Element mit seinen zugehörigen Kindelementen teilweise andere Auswirkungen auf das Layout hat, um echte Tabellendaten möglichst sinnvoll anzuzeigen.
>
> Gruss
>
> MrMurphy
>