CSS《1》

 CSS

一、文本的样式:text

  1.颜色:color:red;

   2.文本对齐方式: text{

                                       left 左对齐

           right 右对齐

           center 居中

           justify 两端对齐  }

  3.文本修饰:text-decoration{

               none 没有

               overline 上划线

               underline 下划线

               line-through 删除线 }

  4.文本缩进:text-indent

二、字体 font

       1.大小 font-size:20px

  2.颜色 color(前面不带font)

  3.样式 font-style{

          normal 正常

          italic 斜体

          oblique 倾斜 

          inherit           }

  4.字形 font-family 微软雅黑

  5.加粗 font-weight{

           normal

           bold 加粗   }

备注:字体大小 400正常,大于400是加粗,小于400是变细。不带px.

原文地址:https://www.cnblogs.com/yuanjingjing/p/9627978.html