CSS书写顺序
CSS 顺序 书写
2023-06-13 09:11:17 时间
CSS书写顺序
整理了一下自己写CSS时的顺序,跟大家分享下。
下表顺序为从上到下,从左到右:
display || visibility
list-style : list-style-type || list-style-position || list-style-image
position
top || right || bottom || left
z-index
clear
float
width
max-width || min-width
height
max-height || min-height
overflow || clip
margin : margin-top || margin-right || margin-bottom || margin-left
padding : padding-top || padding-right || padding-bottom || padding-left
outline : outline-color || outline-style || outline-width
border
background : background-color || background-image || background-repeat || background-attachment || background-position
color
font : font-style || font-variant || font-weight || font-size || line-height || font-family
font : caption | icon | menu | message-box | small-caption | status-bar
text-overflow
text-align
text-indent
line-height
white-space
vertical-align
cursor
相关文章
- 不同样式tooltip对话框小三角的css实现
- css 100% 和 100vh区别
- animate.css的使用
- css 滤镜之AlphaImageLoader「建议收藏」
- 在html中加入外部css样式,如何引入CSS样式表?
- 【说站】css内联样式的盒子模型
- 【CSS教程】紫色渐变登陆布局html+css代码
- 【CSS】CSS 特性 ④ ( CSS 优先级 | 继承权重 )
- 【CSS】课程网站开发示例 ① ( 文件目录结构准备 | CSS 属性书写顺序 - 重要 )
- 使用最简单的 CSS 代码来实现网页电影比例
- MySQL登陆系统CSS实现一键登录(css mysql登陆)
- 最基本的几种CSS文字滤镜效果
- 用CSS给图片打标的代码
- CSS教程之css选择器、属性、值
- 简单的加密css地址防止别人下载你的CSS文件的方法
- juqery学习之六CSS--css、位置、宽高