gpt4 book ai didi

css - 如何使用纯 CSS 创建此箭头

转载 作者:行者123 更新时间:2023-11-28 09:09:26 25 4
gpt4 key购买 nike

如何使用纯 CSS 创建以下箭头? enter image description here

到目前为止,我有这个:

<style>

.halfCircleLeft{
float:left;
height:50px;
width:40px;
border-radius: 0 90px 90px 0;
-moz-border-radius: 0 90px 90px 0;
-webkit-border-radius: 0 90px 90px 0;
background:green;
}

</style>
<div class="bottom_boxes_section">
<div class="halfCircleLeft">Left</div>
</div>

最佳答案

这是一个 Working Fiddle

或者一个bigger One

<div class="HalfCircleLeft"></div>

.HalfCircleLeft
{
margin: 100px;
height: 100px;
width: 50px;
border-radius: 0 50px 50px 0;
background-color: #cfa040;
position: relative;
}

.HalfCircleLeft:before
{
content: "";
position: absolute;
border-top: 10px solid transparent;
border-bottom: 10px solid transparent;
border-right: 10px solid black;
top: 40px;
left: 10px;
}
.HalfCircleLeft:after
{
content: "";
position: absolute;
border-top: 10px solid transparent;
border-bottom: 10px solid transparent;
border-right: 10px solid #cfa040;
top: 40px;
left: 13px;
}

关于css - 如何使用纯 CSS 创建此箭头,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19255282/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com