* { margin:0; padding:0; } .title { margin:0 auto; width:600px; height:30px; background:gainsboro; } #startone { margin:0 auto; width:600px; height:40px; padding-top:10px; box-sizing:border-box; background:rgb(241,241,241); } .star_score ul { display:inline-block; } .star_score { float:left; margin-right:30px; } .star_score li { list-style:none; float:left; } .star { background:url("http://www.jq22.com/tp/6367973217841669823172460.png"); height:21px; position:relative; margin:auto; } .star a { height:100%; position:absolute; } .star2 { background:url("http://www.jq22.com/tp/6367973220293232455481656.png"); } .star_p { margin:0 auto; width:600px; height:40px; /*position:absolute; */ left:20px; }
把图在线图片替换成星星就好了