• CSS 课堂笔记2


      CSS:层叠样式表,是给标签(html)添加样式的    (键对值:属性:属性值;)

       (备注:html超文本标记语言,是标记语言,不是编程语言,说白了就是标签。标签:<标签名>)

    一、文本的样式(text)

      1、颜色  

                color:red;

      2、文本对齐方式

                text-align:left;(左对齐)

                text-align:center;(居中)

                text-align:right;(右对齐)

                text-align:justify(两端对齐)

      3、文本修饰

                text-decoration:none;(什么都没有) 

                text-decoration: overline;   (上划线)

                text-decoration:line-through;  (删除线)

                text-decoration:underline;        (下划线)    

      4、文本转换

                text-transform:uppercase;  (大写字母)

                text-transform:  lowercase;  (小写字母)

                text-transform:  capitalize;    (以大写字母写)

      5、文本缩进

                text-indent:20px;

     

    二、字体(font)

      1、字体大小

                font-size:20px;

      2、字体颜色

                color:red;

      3、字体样式

                font-style:normal;(正常的)

                font-style:italic;     (斜体)

                font-style:oblique;  (倾斜)

                font-style:inherit;    (继承父级样式)

      4、字形

                font-family:"微软雅黑";  (系统默认) 

      5、加粗

                font-weight:normal;(系统默认)

                font-weight:bold;    (粗体)

                font-weight:bolder;  (更粗)

                font-weight:lighter;    (更细)

          (备注:font-weight:可以写数字,后面不用加px            400等于normal        700等于bold         比400小是变细,比400大是变粗)

     

     

     

     

     

     

     

     

           

  • 相关阅读:
    伴郎
    MySQL出现Waiting for table metadata lock的场景浅析
    相同name,取最小的id的值,mysql根据相同字段 更新其它字段
    Sequence contains no elements
    Check if List<Int32> values are consecutive
    comparison of truncate vs delete in mysql/sqlserver
    Are query string keys case sensitive?浏览器种输入url附带的参数是否区分大小写
    Understanding Action Filters (C#) 可以用来做权限检查
    糖果缤纷乐攻略
    DNGuard HVM Unpacker(3.71 trial support and x64 fixed)
  • 原文地址:https://www.cnblogs.com/gdqx/p/9627816.html
Copyright © 2020-2023  润新知