点击箭头 切图 html,这个圆圈里面有箭头的切图用css如何实现

这篇博客分享了一种利用CSS技巧创建圆形带有箭头的图形的方法,通过结合使用border-radius、box-shadow和伪元素来达成。代码示例详细展示了如何创建一个150px的白色圆形,并在其内部添加一个红色箭头。
摘要由CSDN通过智能技术生成

bVcSYgH

bVcSYgW

.circle {

width: 150px;

height: 150px;

background: white;

-moz-border-radius: 50px;

-webkit-border-radius: 50px;

border-radius: 75px;

display: flex;

justify-content: center;

align-items: center;

box-shadow: 3px 1px 3px #909090;

border: solid 1px #909090;

position: relative;

}

.arrow {

width: 125px;

height: 0;

border-left: 125px solid red;

border-top: 50px solid transparent;

border-bottom: 50px solid transparent;

position: absolute;

left: 21px;

}

.arrow:after {

content: '';

border-left: 36px solid white;

border-top: 50px solid transparent;

border-bottom: 50px solid transparent;

position: absolute;

top: -50px;

left: -125px;

}

bVcSYoG

用笨办法实现了, 自问自答吧....

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值