css2

    css字体**
  1. font-size 设置字体大小(px em rem)

  2. font-family 设置字体系列

  3. font-style 设置字体的风格

    • normal 设置字体属于正常

    • italic 设置字体斜体

    • oblique 文体倾斜显示


  4. font-weight 设置文本粗细

    • 100-900

    • bolder

    • normal




    css背景
  1. background-color 设置背景颜色

  2. background-image 设置背景图片

  3. background-repeat 设置图像的平铺

    • repeat 水平垂直方向向上平铺

    • repeat-x 水平方向上的平铺

    • repeat-y 垂直方向上的平铺

    • no-repeat 背景图片仅显示一次



  4. background-position 改变图片在背景中的位置

    • 水平值 left right center 垂直值 bottom top center

    • 长度值 正值或负值 (px em)

    • 百分比值



  5. background-attachment 设置背景关联

    • scroll 背景会随文档滚动

    • fixed 背景固定 不会随文字滚动



  6. background 复合样式(颜色 图像 平铺 关联 位置)

    css列表
  1. list-style-type

    • none 无标记

    • disc 标记是实心圆

    • circle 标记是空心圆

    • square 标记是实心方块

    • decimal 标记是数字


  2. list-style-image 设置列表项图片

  3. list-style-position 设置何处放置列表标记 (inside outside)
  4. list-style 复合样式(标记 图片 位置)

    css框模型(content padding margin border)

  1. margin(改变与周围环境的相对位置)

    • margin-left
    • margin-right
    • mrigin-top

    • margin-bottom(复合样式)

      1. 设置四个值(上右下走)

      2. 设置三个值(上 左右 下)

      3. 设置两个值(上下 左右)

      4. 设置一个值(全部)


你可能感兴趣的:(css2)