HTML实现进度条效果

HTML

<div class="progress"  style="height: 80px;line-height: 80px;">
    <span class="orange" style="width: 100%;"></span>
</div>

CSS

.progress {
    height:10px;
    background:#ebebeb;
    border-left:1px solid transparent;
    border-right:1px solid transparent;
    border-radius:10px;
}
.progress > span {
    position:relative;
    float:left;
    margin:0 -1px;
    min-width:30px;
    height:10px;
    line-height:16px;
    text-align:right;
    background:#cccccc;
    border:1px solid;
    border-color:#bfbfbf #b3b3b3 #9e9e9e;
    border-radius:10px;
    background-image:-webkit-linear-gradient(top,#f0f0f0 0%,#dbdbdb 70%,#cccccc 100%);
    background-image:-moz-linear-gradient(top,#f0f0f0 0%,#dbdbdb 70%,#cccccc 100%);
    background-image:-o-linear-gradient(top,#f0f0f0 0%,#dbdbdb 70%,#cccccc 100%);
    background-image:linear-gradient(to bottom,#f0f0f0 0%,#dbdbdb 70%,#cccccc 100%);
    -webkit-box-shadow:inset 0 1px rgba(255,255,255,0.3),0 1px 2px rgba(0,0,0,0.2);
    box-shadow:inset 0 1px rgba(255,255,255,0.3),0 1px 2px rgba(0,0,0,0.2);
}
.progress .orange {
    background:#FE8E01;
    border-color:#FE8E02 #FE8E02 #BF6B02;
    background-image:-webkit-linear-gradient(top,#FEAA41 0%,#FE8E02 70%,#FE8E01 100%);
    background-image:-moz-linear-gradient(top,#FEAA41 0%,#FE8E02 70%,#FE8E01 100%);
    background-image:-o-linear-gradient(top,#FEAA41 0%,#FE8E02 70%,#FE8E01 100%);
    background-image:linear-gradient(to bottom,#FEAA41 0%,#FE8E02 70%,#FE8E01 100%);
}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值