如何在当前视图中始终保持水平底部滚动条
16lz
2021-01-22
I have two fixed width div(#left and #right)
in html. There's a table
in the left div
with long width rows.
我在html中有两个固定宽度的div(#left和#right)。左侧div中有一个表格,宽行为宽。
I have to drag vertical scroll bar of all page to the end when I am willing to drag horizontal bottom scroll bar of left div.
当我愿意拖动左div的水平底部滚动条时,我必须拖动所有页面的垂直滚动条到最后。
Here's my question: Is there a way to make sure the horizontal bottom scroll bar of left div
always in the bottom of current view?
这是我的问题:有没有办法确保左div的水平底部滚动条始终位于当前视图的底部?
<body>
<div id="left" style="width:40%;float:left;">
<table>
<!--many rows and cols here-->
</table>
</div>
<div id="right" style="width:40%;">
<!--lots of elements here-->
</div>
</body>
1 个解决方案
#1
0
Use overflow:auto; CSS if you want vertical scroll in any div.
使用overflow:auto; CSS如果你想在任何div中垂直滚动。
更多相关文章
- 嵌套水平滑块与单击控件
- Tkinter小部件上的垂直和水平滚动条
- SQL Server表中某些字段含有水平制表符、换行符、回车符、反斜杠
- Android SDK:RelativeLayout - 按钮不会水平居中,即使Layout_Cent
- Android 可拖动的进度条:SeekBar之简单使用
- Android 可拖动进度条:SeekBar之自定义进度条
- Android自定义View-----上下拖动布局--SlideContentLayout
- Android从零开搞系列:自定义View(15)仿天天美剧拖动卡片的效果(下)
- 拖动层的javasvript代码 十行代码即可写出兼容版拖动层