当容器有border-radius
时,我的容器内容不应该被切断吗?border-radius剪辑内容?
样品HTML和CSS:
<div class="progressbar">
<div class="buffer"></div>
</div>
.progressbar { height: 5px; width: 100px; border-radius: 5px; }
.buffer { width: 25px; height: 5px; background: #999999; }
正如你可以看到我的容器(.progressbar
),but the content (.buffer
) goes 'outside' the container上使用border-radius
。我在Google Chrome上看到了这一点。
这是预期的行为?
P.S.这不是关于如何解决它,这是关于它是否应该像这样工作。
jsFiddle死了。 – SquareCat 2012-11-18 13:44:22
@CummanderCheckov tnx通知我。让我再次设置它。虽然所有的信息* *在我的问题(正是因为这个原因),我已经更新它。 – PeeHaa 2012-11-18 14:04:00