107 lines
1.8 KiB
HTML
107 lines
1.8 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>Document</title>
|
|
<!-- <link rel="stylesheet" href="test.css"> -->
|
|
<style>
|
|
|
|
/* p {
|
|
color: yellow;
|
|
} */
|
|
.red {
|
|
color: red;
|
|
}
|
|
.blue, .yellow {
|
|
color: blue;
|
|
}
|
|
|
|
|
|
|
|
* {
|
|
margin: 0;
|
|
}
|
|
.box span {
|
|
color: rosybrown;
|
|
}
|
|
.box span+p {
|
|
color: sandybrown;
|
|
}
|
|
|
|
input[type="text"] {
|
|
width: 100px;
|
|
}
|
|
|
|
input[type="number"] {
|
|
width: 200px;
|
|
}
|
|
|
|
input[type="number"]:focus {
|
|
width: 400px;
|
|
background: red;
|
|
}
|
|
|
|
.zhangsan:hover {
|
|
background: green;
|
|
}
|
|
|
|
/* .aaa li:nth-child(2n+1) {
|
|
color: red;
|
|
} */
|
|
|
|
.aaa li:last-child {
|
|
color: red;
|
|
}
|
|
|
|
.aadsdd::before{
|
|
content: "测试";
|
|
}
|
|
|
|
.aadsdd::after{
|
|
content: "测试1";
|
|
}
|
|
|
|
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<p class="red">212222</p>
|
|
<p class="blue">wededew</p>
|
|
<p class="yellow">黄色</p>
|
|
|
|
<div class="box">
|
|
<span>ddddd</span>
|
|
<p>ddddd</p>
|
|
<p>ddddd2</p>
|
|
</div>
|
|
|
|
<div class="login">
|
|
<input type="text">
|
|
<input type="number">
|
|
</div>
|
|
|
|
<p class="zhangsan">dwqdewdweq</p>
|
|
|
|
|
|
<ul class="aaa">
|
|
<li>1</li>
|
|
<li>1</li>
|
|
<li>1</li>
|
|
<li>1</li>
|
|
<li>1</li>
|
|
<li>1</li>
|
|
<li>1</li>
|
|
<li>1</li>
|
|
<li>1</li>
|
|
<li>1</li>
|
|
</ul>
|
|
|
|
<p class="aadsdd">
|
|
测试文字
|
|
</p>
|
|
|
|
</body>
|
|
</html> |