【发布时间】:2018-08-24 09:49:16
【问题描述】:
我在绿色背景色和边框半径之间看到了一些空白(尤其是当我放大时)。
有什么解决办法吗?
https://codepen.io/anon/pen/oPjgJZ
.container{
width: 250px;
height: 300px;
background-color: antiquewhite;
border: solid 2px green;
border-radius: 40px;
overflow: hidden;
}
.header{
height: 15%;
background-color: green;
display: flex;
justify-content: center;
align-items: center;
}
<div class='container'>
<div class='header'>HeaderText</div>
</div>
【问题讨论】: