* {margin:0px;padding:0px;}. Top{width:100%;Height:50px;Background-color:Antiquewhite;}. Top_content{width:75%;Height:50px;margin:0px Auto;/*up and down for 0, left and right adaptive*/Background-color:Aqua;}. Body{margin:20px Auto;width:75%;Height:1500px;Background-color:Aquamarine;}. Body_img{width:100%;Height:400px;Background-color:Beige;Background-image:URL (http://images.cnblogs.com/cnblogs_com/ttzzyy/1076163/t_8l7byyh7pd%[email protected]]2v8h.png);}. Body_content{width:100%;Height:1100px;Background-color:Chartreuse;}. Body_no{width:100%;Height:50px;Background-color:Coral;}. Footing{width:75%;Height:400px;Background-color:Darkblue;margin:0px Auto;}. Footing_content{width:100%;Height:350px;Background-color:Forestgreen;}. Footing_subnav{width:100%;Height:50px;Background-color:mediumturquoise;}
<!DOCTYPE HTML><HTMLLang= "en"><Head> <MetaCharSet= "UTF-8"> <title>Title</title> <Linkrel= "stylesheet"href= "Tzy.css"type= "Text/css"></Head><Body><Divclass= "Top"> <Divclass= "Top_content"> </Div> <Divclass= "Body"> <Divclass= "Body_img"></Div> <Divclass= "Body_content"> <Divclass= "Body_no"></Div> </Div> </Div> <Divclass= "footing"> <Divclass= "Footing_content"></Div> <Divclass= "Footing_subnav"></Div> </Div></Div></Body></HTML>
HTML Learning note W3SCSS Box model application case (Div layout) Section 11th (original) Reference use table