<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>评价</title>
<style>
.score-public {
width: 210px;
position: relative;
height: 30px;
display: inline-block;
vertical-align: middle;
}
.star,
.star-gray {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
width: 100%;
height: 100%;
display: block;
background: url(./star-all-gray.png) no-repeat;
}
.star {
z-index: 2;
background: url(./star-all.png) no-repeat;
background-size: auto 100%;
}
.star-gray {
background-size: auto 100%;
}
</style>
</head>
<body>
<span class="score-public score ">
<span class="star" style="width:50%"></span>
<span class="star-gray"></span>
</span>
</body>
</html>
评价,星星
最新推荐文章于 2024-05-06 04:13:35 发布