如上图,需要做成这样,我用的BEM,但是每一个排行项的命名我比较纠结,每个项目是作为rank还是作为rank__item比较合理呢?
1————————————————————————
<div class="rank">
<div class="rank__cell rank__num"></div>
<div class="rank__cell rank__profile"></div>
<div class="rank__cell rank__name"></div>
<div class="rank__cell rank__amount"></div>
</div>
<div class="rank">
<div class="rank__cell rank__num"></div>
<div class="rank__cell rank__profile"></div>
<div class="rank__cell rank__name"></div>
<div class="rank__cell rank__amount"></div>
</div>
2————————————————————————
<div class="rank">
<div class="rank__item">
<div class="rank__cell rank__num"></div>
<div class="rank__cell rank__profile"></div>
<div class="rank__cell rank__name"></div>
<div class="rank__cell rank__amount"></div>
</div>
<div class="rank__item">
<div class="rank__cell rank__num"></div>
<div class="rank__cell rank__profile"></div>
<div class="rank__cell rank__name"></div>
<div class="rank__cell rank__amount"></div>
</div>
</div>
慕少森
宝慕林4294392
相关分类