0
我有一個<div class="container">
與<table class="table">
裏面,這看起來不錯。在單元格變寬之前,表格會擴展爲內容的全部大小。在容器內的表格單元格中添加水平滾動條
<div class="container">
<table class="table">
<tr>
<td>Caption</td>
<td>Some very long string that makes the contents to overflow, actually mich like this actual example in StackOverflow.
</td>
</tr>
</table>
</div>
我想有一個水平滾動條時,內容更寬,則容器(實際上喜歡的StackOverflow呢...)。
我該怎麼做?在<td>
上加style="overflow-x: scroll"
不會做任何事情。
overflow屬性不能被應用到表..看到這個職位的詳細信息http://stackoverflow.com/questions/1211309/overflowscroll-in-td –