#HTML5学习
一、布局
1.div模块布局
给定div模块,给定class或者id形成模块来进行布局,之后用样式来进行修饰。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>布局</title>
<style type="text/css">
<!--对div模块改变达成布局的目的-->
body{
margin: 0px;
}
/*具体修饰,div#来声明,也可用其它方式进行改变*/
div#container{
width: 100%;
height: 950px;
background-color: aqua;
}
div#header{
width:100%;
height:10%;
background-color: blue;
}
div#meau{
width:30%;
height:80%;
background-color: blueviolet;
float: left;
}
div#content{
width:70%;
height:80%;
background-color: aquamarine;
float: right;
}
div#footer{
w