本文介绍了顶行左列冻结的可滚动HTML表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人能够在HTML中实现可滚动的表格,其中TOP行和LEFT列是冻结的,但表格的其余部分是可滚动的?一个完美的例子是:
应该很容易重复。请务必记下这些评论 - 许多用户对改进脚本提出了有用的建议。



Per @ Nirk的要求,直接链接到活动演示 http://www.disconova.com/open_source/files/freezepanes.htm


Has anyone been able to implement a scrollable table in HTML where the TOP row and LEFT columns are frozen, but the rest of the table is scrollable? A perfect example of this is:Google Squared

I tried to reverse engineer the code for the google squared table, but I have been unsuccessful so far.

Note: I need the ability to FREEZE the TOP ROW and the LEFT COLUMN at the same time.

解决方案

There's a working example at http://ajaxian.com/archives/freeze-pane-functionality that should be easy to duplicate. Be sure to note the comments -- many of the users have made helpful suggestions for improving the script.

Per @Nirk's request, a direct link to the active demo is at http://www.disconova.com/open_source/files/freezepanes.htm.

这篇关于顶行左列冻结的可滚动HTML表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 21:46