1、命名规范
2、对于每个独立的CSS类而言,都应该只包含一个功能。例:
.zhou{position: absolute; top: 0; right: 0; bottom: 0; left: 0;}
.zhou-content{ background: #eee; color: #333; padding: 30px;}
参考:
说说CSS学习中的瓶颈
提升你的CSS姿势
1、命名规范
2、对于每个独立的CSS类而言,都应该只包含一个功能。例:
.zhou{position: absolute; top: 0; right: 0; bottom: 0; left: 0;}
.zhou-content{ background: #eee; color: #333; padding: 30px;}
参考:
说说CSS学习中的瓶颈
提升你的CSS姿势
本文标题:#CSS#tips during coding
本文链接:https://www.haomeiwen.com/subject/akpodttx.html
网友评论