Home  >  Article  >  Web Front-end  >  div+CSS完成网页布局(上下左右)_html/css_WEB-ITnose

div+CSS完成网页布局(上下左右)_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:29:121809browse

 





无标题文档 title >

body {
margin : 0 ;
padding : 0 ;
}
#head {
height : 40px ;
background-color : #0033CC ;
width : 800px ;
margin : 0 ;
}
#content {
width : 800px ;
background : #CCCCCC ;
height : 200px ;
margin : 0 ;
}
#left {
top : 40px ;
width : 150px ;
height : 200px ;
background : #CCCC66 ;
float : left ;
margin : 0 ;
}
#c {
width : 500px ;
height : 200px ;
background : #FFFFFF ;
margin : 0 ;
}
#right {
width : 150px ;
height : 200px ;
background : #339966 ;
float : right ;
margin : 0 ;
}
#foot {
width : 800px ;
background : #0099CC ;
height : 40px ;
margin : 0 ;
}
style >
head >

head div >

   left div >
   content div >
   rigth div >
div >
foot div >
body >
html >

 

 

 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn