【发布时间】:2020-01-26 03:45:22
【问题描述】:
<html>
<body>
<table width="100%" >
<tbody>
<tr>
<td>
<div width=100% style="overflow-x: scroll; overflow-y: scroll;" >
<table>
<tr>
<th> appleappleappleappleapple </th>
<th> appleappleappleappleapple </th>
<th> appleappleappleappleapple </th>
<th> appleappleappleappleapple </th>
<th> appleappleappleappleapple </th>
<th> appleappleappleappleapple </th>
<th> appleappleappleappleapple </th>
<th> appleappleappleappleapple </th>
<th> appleappleappleappleapple </th>
<th> appleappleappleappleapple </th>
<th> appleappleappleappleapple </th>
<th> appleappleappleappleapple </th>
<th> appleappleappleappleapple </th>
</tr>
</table>
</div>
</td>
</tr>
</tbody>
</table>
</body>
</html>
我将上面的代码与“apple”嵌套在另一个表中。当内容溢出时,我期待一个水平滚动条。但是我在表格下方有一个无法滚动的滚动条。相反,我得到了整个页面的滚动条。
【问题讨论】: