CSS 进度条


可以把边框和颜色去掉。

<!DOCTYPE html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<head>
	<title>css进度条</title>
	<style type="text/css">
		.show_yq{
		    width:380px;
		    height: 100%;
		    margin:10px 0 0 10px;
		}
		.show_yq div.progress{
			display: inline-block;
			min-width: 300px;
			height: 15px;
			line-height: 14px;
		}
		.show_yq .yqtitle{
			display: inline-block;
			height: 25px;
			line-height: 25px;
		}
		.progress span {
		  float: left;
		  min-width: 30px;
		  max-width: 250px;
		  height: 15px;
		  line-height: 14px;
		  border-radius: 5px;
		  margin: auto 4px auto 0;
		  border: 1px solid;
		}
		.progress .green {
		  background: #4ac91e;
		  border-color: #78b337 #6ba031 #568128;
		}
		.progress .orange {
		  background: #ea7222;
		  border-color: #f0ad24 #eba310 #c5880d;
		}
		.progress .gray {
		  background: #c5cfe5;
		  border-color: #bfbfbf #b3b3b3 #9e9e9e;
		}

	</style>
</head>
<body>
	<div class="show_yq">
            正面舆情:<div class="yqtitle">
                <div class="progress"><span class="green" style="width: 25%;"></span>25%</div>
            </div>
            负面舆情:<div class="yqtitle">
                <div class="progress"><span class="orange" style="width: 15%;"></span>15%</div>
            </div>
            普通舆情:<div class="yqtitle">
                <div class="progress"><span class="gray" style="width: 60%;"></span>60%</div>
            </div>
        </div>
</body>
</html>


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值