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