Files
ClassContent/历届学生/font-end-nine/每天上课/2022-05-31/index.html
2024-09-27 02:06:13 +08:00

103 lines
2.0 KiB
HTML

<!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>css</title>
<!-- <link rel="stylesheet" href="./index.css"> -->
<style>
.one,
.three {
color: blue;
}
.two {
color: green;
}
.main > a:hover {
color: yellow;
}
input:focus {
width: 300px;
}
/* ul li:nth-child(2n + 1) {
color: rgb(55, 255, 0);
} */
ul li:first-child {
color: blue;
}
ul li:last-child {
color: rgb(255, 0, 251);
}
.test::before{
content: "before -";
}
.test::after{
content: "- after";
}
.test::selection {
background: yellow;
}
</style>
</head>
<body>
<div class="" style="color: red;font-size: 38px;">你好</div>
<h2 class="one">你好1</h2>
<h2 class="two">你好2</h2>
<h2 class="three">你好3</h2>
<h3>啊哈哈吧</h3>
<div class="main">
<h3>对对对</h3>
<a href="">你好wwww</a>
<a href="">哈哈哈</a>
<div class="test">
<a href="">哈哈哈哈a</a>
</div>
</div>
<input type="text" placeholder="输入用户名">
<p class="test">你好</p>
<ul>
<li>列表1</li>
<li>列表2</li>
<li>列表3</li>
<li>列表4</li>
<li>列表5</li>
<li>列表6</li>
<li>列表7</li>
<li>列表8</li>
<li>列表9</li>
<li>列表10</li>
<li>列表11</li>
<li>列表12</li>
<li>列表13</li>
<li>列表14</li>
<li>列表15</li>
<li>列表16</li>
<li>列表17</li>
<li>列表18</li>
<li>列表19</li>
<li>列表20</li>
</ul>
</body>
</html>