一個傳統的前端框架的佈局

<!DOCTYPE html>html

<html lang="en">ide

<head>測試

<meta charset="UTF-8">htm

<title>覃光林測試</title>it

<style>io

header {meta

         width: 1000px;float

         height: 50px;im

         background: red;margin

        margin: 0 auto;

         color: white;

        text-align: center;

}

 

nav {

         width: 1000px;

         height: 50px;

         background: blue;

        color: white;

         text-align: center;

        margin: 0 auto;

}

 

section {

         margin: 0 auto;

         width: 1000px;

         height: 500px;

         color: white;

         text-align: center;

        margin: 0 auto;

}

aside {

         float: left;

        width: 300px;

         height: 500px;

         background: green;

        color: white;

         text-align: center;

        margin: 0 auto;

}

article {

        float: right;

        height: 500px;

        width: 700px;

         color: white;

         text-align: center;

         background: pink;

        margin: 0 auto;

}

footer {

        width: 1000px; height: 50px;

        background: gray;

         color: white;

        text-align: center;

         margin: 0 auto;

} </style>

</head>

<body> <!--頭部-->

<header>頭部</header>

<nav>導航</nav>

<!--主題--> <section>主題</section>

<!--側邊欄--> <aside>側邊欄</aside>

<!--文章--> <article>文章</article> </section>

<!--底部--> <footer>底部</footer>

</body>

</html>

 

 

相關文章
相關標籤/搜索