1

I have a page with: 1 - header. 2 - table. 3 - footer.

The table has a first row which is like a title for each column. After that, all the data gets ordered by row and column.

I need to scroll all the rows except the first one in the top. I try and try and I got a headache.

This is the start position: Demo

And this is One of my attempts: Demo1

4

1 に答える 1

0

私はいくつかの解決策を考えることができます..

1 つは 2 つのテーブルを使用し、ヘッダーを引き出して、テーブルの下部をスクロール可能な div に配置することです。

2 つ目は、ウェイポイント (http://imakewebthings.com/jquery-waypoints/) を使用してテーブル ヘッダーをロックし、tr:first-child でターゲットにすることです。

3 つ目は、画像をヘッダーとして使用し、独自の div タグでコンテンツをスクロールすることです。

(position:fixed を使用すると、ページ上でロックされたものが所定の位置に保持されます)

これらが役立つことを願っています:)

于 2012-06-14T01:57:50.933 に答える