Home  >  Article  >  Web Front-end  >  css单列布局_html/css_WEB-ITnose

css单列布局_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 08:57:27954browse

<!DOCTYPE html><html><head>    <meta charset="UTF-8">    <title></title>    <style type="text/css">        body{margin: 0;padding: 0}        .main{            background-color: #464646;            width: 800px;            height: 300px;            margin: 0 auto;        }        .top{            height: 100px;            background-color: #3080CB;        }        .footer{            width: 800px;            height: 200px;            margin: 0 auto;            background-color: #006486;        }    </style></head><body>    <div class='top'></div>    <div class="main"></div>    <div class="footer"></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