[英]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.