在滚动时保持表格的行标题和列标题可见 [英] Keeping the row title and column title of a table visible while scrolling

查看:163
本文介绍了在滚动时保持表格的行标题和列标题可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一张大表,用户通常需要滚动页面才能找到数据。这使得在标题不再可见时很难跟踪列/行。我希望在滚动时保持头部可见。

I've got a large table, where the user typically needs to scroll the page to find data. This makes it difficult to track columns/rows once the headers are no longer visible. I'd like to keep the headers visible while scrolling.

我设法让第一行(列标题)保持可见状态( jsfiddle示例),但在第一列上做同样的事情时会感到茫然。

I've managed to get the first row (column headers) to stay visible (jsfiddle example), but am at a loss to do the same for the first column.

PS:我不需要一个iframe解决方案(带有额外的卷轴),但其中一个与我所拥有的类似,但是与第一列相似。

PS: I dont't need an iframe solution (with extra scrolls), but one similar to what I have, but for the first column.

编辑:我已经做到了: jsfiddle示例

I've done it: jsfiddle example

推荐答案

对于那些有兴趣的人,我固定了闪烁和翻转,结果现在完美(对我来说)。 ( jsfiddle示例

For those interested, I fixed the flickering and the flipping, and the result is now perfect (for me). (jsfiddle example)

这篇关于在滚动时保持表格的行标题和列标题可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆