简体   繁体   English

带机身的滚动桌

[英]Scrolling table with tbody

I am trying to build a scrollable table from the first answer of this question. 我正在尝试从此问题的第一个答案构建可滚动表。 Like in the JS here . 就像这里的JS。

In my case my scrollable table needs some tbody inside and when I add them the scroll doesn't work well when it reaches the end. 在我的情况下,我的可滚动表在内部需要一些提示,当我添加它们时,滚动到达终点时效果不佳。

Example here . 这里的例子。 At the end of the scroll, there is a space and it should not. 滚动的末尾有一个空格,应该没有空格。

(I need tbody on each tr because I will make from tbody an angular component that will display several tr for row grouping). (我在每个tr上都需要tbody ,因为我将从tbody中创建一个角度组件,该组件将显示几个tr用于行分组)。

This is typo. 这是错字。 You have an extra chracter at the end of the second table : 在第二张表的末尾有一个额外的限制:

</table>`

After removing it, works fine. 删除后,效果很好。

jsbin jsbin

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM