当你有一个带有边界半径的可滚动div时,孩子们会使用eclipse或者不尊重这个边界半径。例如下面是该问题的一个小提琴:滚动元素上的border-radius
http://jsfiddle.net/Thatguyhampton/E9dmr/2/
.scrollable {
overflow: auto;
overflow-y: overlay;
-webkit-overflow-scrolling: touch;
-webkit-transform: translate3d(0, 0, 0);
height: 400px;
width: 200px;
background-color: blue;
border-radius : .5em;
}
.content {
height: 500px;
width: 200px;
}
.content-top {
position :absolute;
top: 0;
height: 50px;
width : 200px;
background-color: red;
}
红色区域显示尖角,而不是圆形的人父。有没有办法解决?
的[相同的边框半径(http://jsfiddle.net/E9dmr/5/)添加到子(或[继承边界半径(http://jsfiddle.net/E9dmr/ 4 /))是不是我想的解决方案? – potashin