In order to make the layout more beautiful, you need to fix the title column and title header in html. This article has sorted out some related implementation skills. The tests are good. If you are interested, refer to the following, hope to help you
The Code is as follows:
Fixed title column and title header table
Script
Function aa (){
Var a = document. getElementById ("t_r_content"). scrollTop;
Var B = document. getElementById ("t_r_content"). scrollLeft;
Document. getElementById ("cl_freeze"). scrollTop =;
Document. getElementById ("t_r_t"). scrollLeft = B;
}
Script
| 1 |
1 |
| 2 |
2 |
| 3 |
3 |
| 4 |
4 |
| 5 |
5 |
| 6 |
6 |
| 7 |
7 |
| 8 |
8 |
| 9 |
9 |
| 10 |
10 |
| 11 |
11 |
| 12 |
12 |
| 13 |
13 |
| 14 |
14 |
| 15 |
15 |
| 16 |
16 |
| 17 |
17 |
| 18 |
18 |
| 19 |
19 |
| 20 |
20 |
| Field |
Field B |
Field C |
Field D |
Field E |
Field F |
| 1 |
1 |
1 |
1 |
1 |
1 |
| 2 |
2 |
2 |
2 |
2 |
2 |
| 3 |
3 |
3 |
3 |
3 |
3 |
| 4 |
4 |
4 |
4 |
4 |
4 |
| 5 |
5 |
5 |
5 |
5 |
5 |
| 6 |
6 |
6 |
6 |
6 |
6 |
| 7 |
7 |
7 |
7 |
7 |
7 |
| 8 |
8 |
8 |
8 |
8 |
8 |
| 9 |
9 |
9 |
9 |
9 |
9 |
| 10 |
10 |
10 |
10 |
10 |
10 |
| 11 |
11 |
11 |
11 |
11 |
11 |
| 12 |
12 |
12 |
12 |
12 |
12 |
| 13 |
13 |
13 |
13 |
13 |
13 |
| 14 |
14 |
14 |
14 |
14 |
14 |
| 15 |
15 |
15 |
15 |
15 |
15 |
| 16 |
16 |
16 |
16 |
16 |
16 |
| 17 |
17 |
17 |
17 |
17 |
17 |
| 18 |
18 |
18 |
18 |
18 |
18 |
| 19 |
19 |
19 |
19 |
19 |
19 |
| 20 |
20 |
20 |
20 |
20 |
20 |