我可以帮您翻译成中文。这段内容是关于表格的,想要第一列出现垂直滚动条。在Chrome、IE9和iPad的Safari浏览器中可以实现,但在Firefox浏览器中不行。为什么呢?我做错了什么吗?
HTML代码:
CSS:
HTML代码:
<table>
<tbody>
<tr>
<td class="col1">
<div class="wrapper">
<p>Test</p>
<p>Test</p>
<p>Test</p>
<p>Test</p>
<p>Test</p>
<p>Test</p>
...
</div>
</td>
<td class="col2">
</td>
</tr>
</tbody>
</table>
CSS:
html, body {
margin: 0;
padding: 0;
height: 100%;
width: 100%;
}
table {
width: 100%;
height: 100%;
}
table .col1 {
width: 20%;
height: 100%;
}
table .col1>div.wrapper {
width: 100%;
height: 100%;
overflow: auto;
}
table .col2 {
width: 80%;
height: 100%;
background-color: red;
}