其他分享
首页 > 其他分享> > CSS – Naming Conversion

CSS – Naming Conversion

作者:互联网

参考:

CSS Naming Conventions that Will Save You Hours of Debugging

 

Class Name

use hypen

.hero-section {}

 

JS Used Class Name

add prefix "js"

class="js-hero-section"

好处是比较 clear, 解耦也比较顺风水.

 

标签:Conversion,hero,Name,section,js,Naming,Class,CSS
来源: https://www.cnblogs.com/keatkeat/p/15856917.html