我似乎无法摆脱这个圈子上半部分的薄白色轮廓。任何想法如何解决它? JSFiddle Demo如何摆脱这个圆圈上半部分的薄白色轮廓?
body {
background-color: black;
padding:50px;
}
.square {
background-color: white;
margin-bottom: 20px;
height: 200px;
\t \t width: 200px;
\t \t overflow: hidden;
\t \t }
.halfSquare {
\t \t background-color: #462a04;
\t \t height: 100px;
\t \t width: 200px;
\t \t }
.circle {
\t background-color: white;
\t \t height: 200px;
\t \t width: 200px;
\t \t border-radius: 50%;
\t \t overflow: hidden;
\t \t }
.halfCircle {
\t \t background-color: #462a04;
\t \t height: 100px;
\t \t width: 200px;
\t \t }
<body>
<div class="square"><div class="halfSquare"></div></div>
<div class="circle"><div class="halfCircle"></div></div> \t
</body>
伊莫你不能,如果你建立这种方式。白色像素点应该是这样的点,其中“棕色像素”至少会出现在容器盒外(小于一个像素)。因此它会溢出并且溢出被隐藏。所以浏览器改为显示容器。 – delbertooo