这种上面的弧形应该这么用CSS写 只能用背景图代替吗
<div class="father">
<div class="mouth"></div>
</div>
.father{
height: 50px;
width: 100px;
overflow: hidden;
}
.mouth {
border-radius: 100px 0;
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
background-color: black;
width: 100px;
height: 100px;
}
13 回答12.8k 阅读
7 回答1.9k 阅读
3 回答1.1k 阅读✓ 已解决
2 回答1.1k 阅读✓ 已解决
2 回答839 阅读✓ 已解决
6 回答822 阅读✓ 已解决
4 回答913 阅读✓ 已解决
给你个思路