<style>
.jindu {
400px;
height: 30px;
background:blue;
position: relative;
}
.zhi{
height: 30px;
30%;
background: red;
float: left;
}
.su{
height: 30px;
line-height: 30px;
position: absolute;
right:10px;
color: white;
}
</style>
</head>
<body>
<div class="jindu">
<div class="zhi"></div>
<div class="su">30%</div>
</div>
</body>