|
@@ -0,0 +1,68 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html lang="en">
|
|
|
+<head>
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
+ <title>Document</title>
|
|
|
+ <style>
|
|
|
+ .box{
|
|
|
+ color: red;
|
|
|
+ }
|
|
|
+ a:link{
|
|
|
+ color: chartreuse;
|
|
|
+ }
|
|
|
+ a:visited{
|
|
|
+ color: yellow;
|
|
|
+ }
|
|
|
+ a:hover{
|
|
|
+ color: blue;
|
|
|
+ font-size: 50px;
|
|
|
+ }
|
|
|
+ a:active{
|
|
|
+
|
|
|
+ color: green;
|
|
|
+ }
|
|
|
+ .box:hover{
|
|
|
+ background-color: blue;
|
|
|
+ width: 100px;
|
|
|
+ height: 100px;
|
|
|
+ }
|
|
|
+ /* li:first-child{
|
|
|
+ color: red;
|
|
|
+ }
|
|
|
+ li:last-child{
|
|
|
+ color: green;
|
|
|
+ } */
|
|
|
+ /* li:nth-child(2){
|
|
|
+ color: chocolate;
|
|
|
+ } */
|
|
|
+ /* li:nth-child(odd){
|
|
|
+ color: red;
|
|
|
+ }
|
|
|
+ li:nth-child(even){
|
|
|
+ color: green;
|
|
|
+ } */
|
|
|
+ /* li:nth-child(2n+1){
|
|
|
+ color: red;
|
|
|
+ } */
|
|
|
+ </style>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+ <div class="box">hello</div>
|
|
|
+ <a href="https://www.baidu.com">百度</a>
|
|
|
+ <a href="https://www.google.com">谷歌</a>
|
|
|
+
|
|
|
+ <ul>
|
|
|
+ <li>项目一</li>
|
|
|
+ <li>项目二</li>
|
|
|
+ <li>项目三</li>
|
|
|
+ <li>项目四</li>
|
|
|
+ <li>项目五</li>
|
|
|
+ <li>项目六</li>
|
|
|
+ <li>项目七</li>
|
|
|
+ <li>项目八</li>
|
|
|
+ <li>项目九</li>
|
|
|
+ <li>项目十</li>
|
|
|
+ </ul>
|
|
|
+</body>
|
|
|
+</html>
|