<!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; 行高初坠,大小和高度一致就可以實現(xiàn)垂直居中*/
? ? ? ? ? ? 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><!-- 行內(nèi)樣式 -->
? ? ? ? <li>任務3</li>
? ? </ul>
</body>
</html>