html流程进度效果,如何用html/css实现简历中的技能进度效果 如图

我是通过写把圆弧分解为4个正方形定位在四个角

然后根据百分比来对四个正方形进行显示或隐藏以及旋转角度来达到显示效果

HTML

25%

50%

70%

90%

CSS

.circle-level {

display: inline-block;

position: relative;

width: 200px;

height: 200px;

background: #CCC;

border-radius: 50%;

overflow: hidden;

line-height: 200px;

text-align: center;

}

.circle-level:after {

content: "";

position: absolute;

top: 15px;

left: 15px;

width: 170px;

height: 170px;

background: #FFF;

border-radius: 50%;

z-index: 2;

}

.circle-level .score {

font-size: 30px;

position: relative;

z-index: 3;

}

.circle-level .arc {

position: absolute;

background: blue;

width: 100px;

height: 100px;

z-index: 1;

}

.circle-level .arc:nth-child(1) {

top: 0;

right: 0;

}

.circle-level .arc:nth-child(2) {

top: 100px;

right: 0;

}

.circle-level .arc:nth-child(3) {

top: 100px;

right: 100px;

}

.circle-level .arc:nth-child(4) {

top: 0;

left: 0;

}

.level-1 .arc:nth-child(2),

.level-1 .arc:nth-child(3),

.level-1 .arc:nth-child(4) {

display: none;

}

.level-2 .arc:nth-child(3),

.level-2 .arc:nth-child(4) {

display: none;

}

.level-3 .arc:nth-child(3) {

transform-origin: 50% 100%;

transform: rotate(45deg);

}

.level-3 .arc:nth-child(4) {

display: none;

}

.level-4 .arc:nth-child(4) {

transform-origin: 0% 0%;

transform: rotate(45deg);

}

bVuxJy

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值