Rating

Rating 適合用來做簡易的評分功能,可替換文字符號。

<div class="rating">
    <input type="radio" name="rating" value="5" class="rating-radio" />
    <span class="rating-item"></span>
    <input type="radio" name="rating" value="4" class="rating-radio" />
    <span class="rating-item"></span>
    <input type="radio" name="rating" value="3" class="rating-radio" />
    <span class="rating-item"></span>
    <input type="radio" name="rating" value="2" class="rating-radio" />
    <span class="rating-item"></span>
    <input type="radio" name="rating" value="1" class="rating-radio" />
    <span class="rating-item"></span>
</div>

尺寸

Rating 另外提供兩種尺寸,包含 .size-sm 以及 .size-lg


<div class="rating size-sm">~略~</div>
<div class="rating size-lg">~略~</div>