开发了问题的副本:
如果您参考小提琴,它在父 div 中有两个 div,当父 div 溢出以显示垂直滚动条时,右侧内部 div 的水平滚动条进入垂直溢出的内部,并且水平滚动条无法供人使用。
怎么实现即使数据比较多也能访问到的内层div的水平滚动条;在我看来,我喜欢在父 div 之外浮动或创建滚动条的副本??
有任何想法吗??
代码:
<div class="parent">
<div id="left-order-panel">
<table id="edit-left">
<thead>
<tr>
<th>h1</th>
<th>h2</th>
<th>h3</th>
<th>h4</th>
<th>h5</th>
</tr>
</thead>
<tbody>
<tr>
<td>h1</td>
<td>h2</td>
<td>h3</td>
<td>h4</td>
<td>h5</td>
</tr>
</tbody>
</table>
<table id="data-left">
<thead>
<tr>
<th>h1</th>
<th>h2</th>
<th>h3</th>
<th>h4</th>
<th>h5</th>
</tr>
</thead>
<tbody>
<tr>v1</tr>
<tr>v2</tr>
<tr>V3</tr>
<tr>v4</tr>
<tr>V5</tr>
</tbody>
</table>
</div>
<div id="right-order-panel">
<div id="right-order-inner">
<table id="order-right">
<thead>
<tr style="height: 26px;">
<th data-lang="dashboard.order-projection" colspan="10">Order Projection</th>
</tr>
<tr style="height: 26px;">
<th colspan="4"> 2013 </th>
<th colspan="4"> 2014 </th>
</tr>
</thead>
<tbody>
<tr style="height: 26px;">
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>4</td>
<td>4</td>
</tr>
<tr style="height: 26px;">
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>4</td>
<td>4</td>
</tr>
<tr style="height: 26px;">
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>4</td>
<td>4</td>
</tr>
<tr style="height: 26px;">
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>4</td>
<td>4</td>
</tr>
</tbody>
</table>
</div>
</div>