2021-11-21

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Document</title>

    <style>

        h1{

            color: red;

            /* text-indent: 50px; *//* text-align:center 水平居中 */

            /* line-height: 50px; 行高,大小和高度一致就可以实现垂直居中*/

            height: 100px;

            line-height: 100px;

             text-align:center;

             background-color: yellow;

        }

        a{color: red;

        text-decoration: none;/* none链接去下划线*//* text-decoration: overline文字上面的线 line-through;一般用于任务列表 */

        }

    </style>

</head>

<body>

    <h1>

        欢迎欢迎

    </h1>

    <a href="">欢迎欢迎</a>

    <ul>

        <li>任务1</li>

        <li style="text-decoration: line-through;">任务2</li><!-- 行内样式 -->

        <li>任务3</li>

    </ul>

</body>

</html>

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容