Tag: 垂直滚动

在Scroll上隐藏RecyclerView / ListView上的ActionBar

在我的应用程序中,我得到了顶部的某种操作栏和下面的列表视图。 我想要做的就是把它向上滚动到列表中,所以它隐藏起来,然后当列表向下滚动时,它应该向下滚动列表,就像它刚好在屏幕上边界一样。 我怎样才能实现这个function?

100%宽度的HTML表格,tbody内部有垂直滚动条

我怎样才能设置<table> 100%的宽度,并只放在<tbody>垂直滚动一些高度? table { width: 100%; display:block; } thead { display: inline-block; width: 100%; height: 20px; } tbody { height: 200px; display: inline-block; width: 100%; overflow: auto; } <table> <thead> <tr> <th>Head 1</th> <th>Head 2</th> <th>Head 3</th> <th>Head 4</th> <th>Head 5</th> </tr> </thead> <tbody> <tr> <td>Content 1</td> <td>Content 2</td> <td>Content 3</td> <td>Content 4</td> <td>Content 5</td> […]