Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
557 views
in Technique[技术] by (71.8m points)

javascript - 具有固定列和标题的垂直/水平滚动(Vertical/Horizontal scroll with fixed column and header)

I'm working on this sort of gradebook.

(我正在研究这种成绩单。)

So on the left column are the students, and on the right column are the grades.

(因此,左列是学生,右列是成绩。)

I need to make scrollable the areas marked red and green.

(我需要使标记为红色和绿色的区域可滚动。)

So scrolling vertical will move grades and students up and down and headers should stay in place, and scrolling horizontal, will move the grades and grades headers left and right, but student column should stay in place.

(因此,垂直滚动将使成绩和学生上下移动,标题应保持在原位;水平滚动,将使成绩和成绩标题向左和向右移动,但学生栏应保持在原位。)

Does anybody know how to archieve this?

(有人知道如何存档吗?)

Please advise!

(请指教!)

I managed to do it separately but can't make it work both together.

(我设法单独进行了操作,但是无法使其同时工作。)

在此处输入图片说明

  ask by warheartvik translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...