|
@@ -0,0 +1,49 @@
|
|
|
+<!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 {
|
|
|
+ width: 100%;
|
|
|
+ /* height: 800px; */
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ }
|
|
|
+ #header {
|
|
|
+ width: 100%;
|
|
|
+ /* flex: 1; */
|
|
|
+ height: 100px;
|
|
|
+ background: #00f;
|
|
|
+ }
|
|
|
+ #main {
|
|
|
+ width: 100%;
|
|
|
+ flex: 8;
|
|
|
+ background-color: #ff0;
|
|
|
+ }
|
|
|
+ /* #main .item {
|
|
|
+ width: 200px;
|
|
|
+ height: 200px;
|
|
|
+ border: 1px solid #000;
|
|
|
+ } */
|
|
|
+ #footer {
|
|
|
+ width: 100%;
|
|
|
+ flex: 1;
|
|
|
+ background: #f00;
|
|
|
+ }
|
|
|
+ </style>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+ <div id="box">
|
|
|
+ <div id="header">1</div>
|
|
|
+ <div id="main">
|
|
|
+ <div class="item">内容</div>
|
|
|
+ <div class="item">内容</div>
|
|
|
+ <div class="item">内容</div>
|
|
|
+ <div class="item">内容</div>
|
|
|
+ </div>
|
|
|
+ <div id="footer">3</div>
|
|
|
+ </div>
|
|
|
+</body>
|
|
|
+</html>
|