简体   繁体   中英

Html background colour behind border-radius

I have an html table with the thead set as position:sticky , which works fine. The row has background-color and border-radius set as you ca see here:

标题

The problem is that when the rows scroll up 'behind' the header you can see them in the cut off corner.

在此处输入图像描述

So, how do I set the background colour that appears behind an element with a background colour and border radius? Or is there some other way to stop this happening?

在此处输入图像描述

The background must be on the element behind your thead .

Once you find which element has that color, put overflow: hidden; on that (parent) element.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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