2 回答
TA貢獻2021條經驗 獲得超8個贊
決定了用如下的,bem推薦的方式,創建新的塊來解決
現在就是兩個block了,ranks為一種塊 rank為一種塊
錯誤
<section class="comments">
<h2 class="comments__title"></h2>
<article class="comments__comment">
<h3 class="comments__comment-title"></h3>
</article>
<article class="comments__comment">
<h3 class="comments__comment-title"></h3>
</article>
</section>
正確 comments塊和comment塊
<section class="comments">
<h2 class="comments__title"></h2>
<article class="comment">
<h3 class="comment-title"></h3>
</article>
<article class="comment">
<h3 class="comment-title"></h3>
</article>
</section>
添加回答
舉報
