SS Code
1 | /* UI Object */ |
2 | .star_rating{ width : 67px ; height : 10px ; background : url (img/bg_starpoint_off.gif) 0 0 no-repeat } |
3 | .star_rating span{ display : block ; height : 10px ; background : url (img/bg_starpoint_on.gif) 0 0 no-repeat } |
4 | .star_rating .point{ display : none } |
5 | @media print { |
6 | .star_rating span{ display : none } |
7 | .star_rating .point{ display : block } |
8 | } |
9 | /* //UI Object */ |
HTML Code
1 | <!-- UI Object --> |
2 | < div class = "star_rating" >< span style = "width:50%" ></ span >< span class = "point" >5</ span ></ div > |
3 | <!-- //UI Object --> |