【原创】CSS 常用属性

CSS 常用属性

  • 字体属性 font-size

  • 文本属性 text-decoration、text-align
    text-decoration:规定添加到文本的修饰。
    underline 定义文本下的一条线。
    overline 定义文本上的一条线。
    line-through 定义穿过文本下的一条线。
    blink 定义闪烁的文本。

  • 首行缩进 text-indent

  • 行高 line-height

  • 宽高属性 width height min-height max-height

  • 背景 background
    background:bg-color bg-image position/bg-size bg-repeat bg-origin bg-clip bg-attachment initial|inherit;

  • 列表 list-style
    在一个声明中设置所有的列表属性
    list-style-type
    list-style-position
    list-style-image

  • 字体颜色 color

  • border

borderWidth 设置边框的宽度

thin
medium
thick
length

borderStyle 设置边框的样式

none
hidden
dotted
dashed 点状
solid 实现
double 双边
groove
ridge
inset
outset

borderColor 设置边框的颜色

color-name
color-rgb
color-hex
transparent

transform

点赞

发表回复

电子邮件地址不会被公开。必填项已用 * 标注