|
@@ -0,0 +1,67 @@
|
|
|
+<!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>
|
|
|
+ body{
|
|
|
+ margin: 0;
|
|
|
+ }
|
|
|
+ .nav-content{
|
|
|
+ background-color: #3498db;
|
|
|
+ padding:20px;
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
+ .foot-content{
|
|
|
+ background-color: #999;
|
|
|
+ padding: 20px 0;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+ .main-content .left{
|
|
|
+ background-color: purple;
|
|
|
+ width: 20%;
|
|
|
+ float: left;
|
|
|
+ height: 200px;
|
|
|
+ }
|
|
|
+ .main-content .right{
|
|
|
+ background-color: blue;
|
|
|
+ width: 80%;
|
|
|
+ float: left;
|
|
|
+ height: 200px;
|
|
|
+ }
|
|
|
+ .main-content::after{
|
|
|
+ content: "";
|
|
|
+ display: block;
|
|
|
+ clear: both;
|
|
|
+ }
|
|
|
+ .left-box{
|
|
|
+ padding-left: 20px;
|
|
|
+ }
|
|
|
+ </style>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+ <div class="container">
|
|
|
+ <div class="nav-content">
|
|
|
+ <h1>我的网页</h1>
|
|
|
+ </div>
|
|
|
+ <div class="main-content">
|
|
|
+ <div class="left">
|
|
|
+ <div class="left-box">
|
|
|
+ <h2>左侧边栏</h2>
|
|
|
+ <p>这是左侧边栏的内容</p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="right">
|
|
|
+ <h2>主要内容</h2>
|
|
|
+ <p>这是网页的主要内容区域,您可以在这里添加大量的文本、图片或其他元素。</p>
|
|
|
+ <p>比如,这是一段额外的描述性文字,用于展示内容的丰富性。</p>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div class="foot-content">
|
|
|
+ <span>版权所有 @ 2024 我的网页</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</body>
|
|
|
+</html>
|