[英]Html background colour behind border-radius
我有一个 html 表,其标题设置为thead position:sticky ,效果很好。 如您在此处看到的那样,该行设置了background-color和border-radius :
thead
position:sticky
background-color
border-radius
问题是当行在 header 的“后面”向上滚动时,您可以在切掉的角落看到它们。
那么,如何设置出现在具有背景颜色和边框半径的元素后面的背景颜色呢? 还是有其他方法可以阻止这种情况发生?
背景必须在你的头后面的thead上。
一旦你找到哪个元素有那个颜色,就把overflow: hidden; 在那个(父)元素上。
overflow: hidden;
[英]Background-color behind a border-radius
[英]Transparent background with border-radius
[英]HTML progress bar with border-radius and background gradient
[英]IE9 divs with border-radius and bleeding background-colour and border
[英]Background-clip messes with border-radius
[英]chrome: border-radius on image with padding and background
[英]IE: border-radius with background is not smooth
[英]CSS border-radius in IE with injected html
[英]Html5 Border-Radius Reverse Fill
[英]border-radius on table in html/css
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.