HTML传统布局
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>H5布局</title>
<link rel="stylesheet" href="./index.css">
<style>
body{
background-color: #C94154;
width: 850px;
height: 900px;
margin: 0px auto;
}
header{
width: 800px;
height: 50px;
background-color: white;
margin: 50px auto 0px auto;
}