简体   繁体   English

浮动表标题+圆角的副作用

[英]side-effect of floating table header + rounded corners

Please refer to this fiddle . 请参考这个小提琴 While scrolling down, the table cells appear in the rounded corners. 向下滚动时,表格单元格显示在圆角中。 How do I hide that? 我怎么藏起来?

Explanation 说明

I have a table of data that when scrolled headers stay fixed, but data scrolls (using javascript). 我有一个数据表,当滚动的标头保持固定时,但是数据滚动(使用javascript)。

The problem is that my headers have rounded corners and when my table gets scrolled cells appear in the rounded corner area as seen on the image below. 问题是我的标题有圆角,并且当我的表格滚动时,圆角区域中会出现滚动单元,如下图所示。

What should I do to avoid this? 我应该怎么做才能避免这种情况?

在此处输入图片说明

Match the background behind the elements to the body background: 将元素后面的背景与主体背景进行匹配:

thead tr { background: #fff; }

http://jsfiddle.net/Wexcode/CDSdU/ http://jsfiddle.net/Wexcode/CDSdU/

Make the header's parent have a background-color:white; 使标头的父级具有background-color:white; and then make sure that is the fixed element. 然后确保它是固定元素。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM