【发布时间】:2019-07-23 23:58:55
【问题描述】:
我需要一些 CSS 帮助。很难解释,但是看着 sn-p,我需要没有红色的黑色部分。
我使用了两个元素,但应该可以使用一个......
.q-rounder {
background: #222;
width: 15px;
height: 15px;
}
.quarter-circle {
width: 15px;
height: 15px;
background: red;
border-radius: 100px 0 0 0;
-moz-border-radius: 100px 0 0 0;
-webkit-border-radius: 100px 0 0 0;
}
<div class="q-rounder">
<div class="quarter-circle"></div>
</div>
(fiddle)
【问题讨论】:
标签: css css-shapes