fengchuanyu 11 달 전
부모
커밋
9b30c15a08
1개의 변경된 파일68개의 추가작업 그리고 0개의 파일을 삭제
  1. 68 0
      2_css/练习8_选择器练习.html

+ 68 - 0
2_css/练习8_选择器练习.html

@@ -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>
+        .nav-content{
+            border: 1px solid black;
+        }
+        .content{
+            width: 400px;
+            margin:0 auto;
+            border:1px solid red;
+        }
+        .img-content{
+            border: 1px solid black;
+        }
+        .img-content img{
+            width: 300px;
+        }
+        .text-content{
+            border: 1px solid black;
+            background-color: #999;
+        }
+        .link-content{
+            background-color: #666;
+        }
+    </style>
+</head>
+<body>
+    <div class="container">
+        <div class="nav-content">
+            <div class="content">
+                <h2>我的旅行故事</h2>
+            </div>
+        </div>
+        <div class="img-content">
+            <div class="content">
+                <img src="./img/img1.jpg" alt="">
+            </div>
+        </div>
+        <div class="text-content">
+            <div class="content">
+                <p>在过去的这个夏天,我踏上了一段令人难忘的旅行。</p>
+                <p>我走过了山川湖泊,领略了大自然的壮丽景色。</p>
+                <p>每一个瞬间都让我感到无比的兴奋和满足。</p>
+            </div>
+        </div>
+        <div class="link-content">
+            <div class="content">
+                <h3>热门文章</h3>
+                <ul>
+                    <li>
+                        <a href="https://www.baidu.com">美食探索之旅</a>
+                    </li>
+                    <li>
+                        <a href="https://www.baidu.com">文化体验</a>
+                    </li>
+                    <li>
+                        <a href="https://www.baidu.com">冒险与挑战</a>
+                    </li>
+                </ul>
+            </div>
+        </div>
+    </div>
+</body>
+</html>