docs(projects): 文档更新

This commit is contained in:
Soybean
2021-11-08 06:10:49 +08:00
parent cd6db3d491
commit 8d2ba3e576
7 changed files with 189 additions and 79 deletions

View File

@ -1,14 +1,15 @@
css书写顺序
### css书写顺序
1.定位属性position display float left top right bottom overflow clear z-index
2.自身属性width height padding border margin background
3.文字样式font-family font-size font-style font-weight font-varient color
4.文本属性text-align vertical-align text-wrap text-transform text-indent text-decoration letter-spacing word-spacing white-space text-overflow
5.css3中新增属性content box-shadow border-radius transform……
`1.定位属性position display float left top right bottom overflow clear z-index`
`2.自身属性width height padding border margin background`
`3.文字样式font-family font-size font-style font-weight font-varient color`
`4.文本属性text-align vertical-align text-wrap text-transform text-indent text-decoration letter-spacing word-spacing white-space text-overflow`
`5.css3中新增属性content box-shadow border-radius transform`
class类名的顺序
1.自定义的class类名(遵循BEM命名法)
2.css插件提供的类名按照以上的css属性对应的顺序
#### class类名的顺序
1. 自定义的class类名(遵循BEM命名法)
2. css插件提供的类名按照以上的css属性对应的顺序
例如自定义类名结合tailwind css