2
我有border-radius
和overflow: hidden
上的父元素,以隱藏任何內容溢出。顯示錶和壞溢出:隱藏在IE和MS邊緣
它不應該是這樣的:
它的工作原理無處不在,除了IE和邊緣。在這些瀏覽器,它看起來像這樣:
HTML:
<div class="table">
<div class="col1"></div>
<div class="col2"></div>
</div>
CSS:
.table {
border-radius: 10px;
border: 1px solid black;
overflow: hidden;
display: table;
width: 100%;
}
.col1 {
background: pink;
display: table-cell;
width:50px;
}
.col2 {
background: orange;
display: table-cell;
height: 200px;
}
的可能的複製[邊界半徑出血(https://stackoverflow.com/questions/5652641/border-radius-bleeding) – CBroe