I have created layout that looks like this:
这就是它是如何运作的:
""https://i.sstatic.net/SI5nS.gif" alt="在这里输入图像描述"/ >
可以看到页眉是固定的,但可以滚动,同一行为是一列。
这是演示的代码 :
一切顺利,但只在FF上,在IE8上,我有两个问题:
- In FF I have border in head and row divs (inside tables in them), but IE8 cuts the bottom border.
“https://i.sstatic.net/ XubrZt.jpg" alt=“ie mistake'/> https://i.sstatic.net/ XubrZt.jpg" alt=“ie mistake'/> https://i.sstatic.net/ Xubrzt.jpg" alt=“ie mistake”/>
UPDATE: Border error fixed (workaround) - I ve added extra border to head, col and row divs. http://jsfiddle.net/Misiu/9j5Xy/12/
- Second problem is with scroll functionality-on FF everything works, but IE8 as always has problems. When I click inside wrapper div and use arrows to scroll my table div, FF works fine, but IE sometimes scrolls randomly or returns to top (try pressing arrow randomly). It should allow only one move at time.
有人能帮我修补内脏 优化代码和CS吗?