zl程序教程

您现在的位置是:首页 >  前端

当前栏目

css规范 - bem

CSS 规范
2023-09-11 14:14:36 时间

 

用我的话简述来说,即

 

B:何种元素

 

E:何种模块使用它(header,footer)等

 

M:描述它是做何种事情

 

例如就是我有个主页,名称是:index.html

 

index_header_logo 或 index-header-logo

index_footer_concat 或 index-footer-concat

 

 

详情可以参见:https://www.cnblogs.com/dujishi/p/5862911.html