Ich habe dieses Beispiel:Wie kann ich dieses div scroll mit display: table?
HTML-Code:
<div id="wrap">
<div id="scrollable">
<table class="table">
<thead>
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr>
<td>John</td>
<td>Doe</td>
<td>[email protected]</td>
</tr>
<tr>
<td>Mary</td>
<td>Moe</td>
<td>[email protected]</td>
</tr>
<tr>
<td>July</td>
<td>Dooley</td>
<td>[email protected]</td>
</tr>
</tbody>
</table>
</div>
</div>
CODE CSS:
#wrap{
display:table; //Here is the problem
background: #F7F7F7;
}
#scrollable{
overflow-y:auto;
}
table{
min-width:1000px;
}
Wenn Sie erhalten "display: table", wenn alles funktioniert einwandfrei, aber ich nicht wa Ich will ihn nicht aufgeben.
Ich möchte Scroll-Tabelle machen.
Es kann dies tun? Practicaly möchte ich #scrollable
div bewegen haben, aber ohne die "display: table"
Cancelling Können Sie mir eine Lösung für dieses Problem zu finden bitte helfen?
Vielen Dank!
wollen Sie für die Tabelle scrollen oder #scrollable? – Dimple
können Sie mehr über Ihre Frage erklären? – Bhimbim