您现在的位置:首页 >> 前端 >> 内容

一个简单首页的布局

时间:2017/7/11 17:02:26 点击:

  核心提示:一个简单首页的布局span style=font-size:18px;!DOCTYPE htmlhtmlheadmeta charset=utf-8title实战首页布局/titlestyle typ...

一个简单首页的布局

<span style="font-size:18px;"><!DOCTYPE html>  
<html>  
<head>  
    <meta charset="utf-8">  
    <title>实战首页布局</title>  
    <style type="text/css">  
        #container{  
            width: 1002px;  
            background: gray;  
        }  
        #header{  
            height: 120px;  
            background: orange;  
        }  
        #main{  
            /*height: 600px;*/  
            overflow: hidden;  
            background: green;  
        }  
        #Lsite{  
            width: 700px;  
            height: 600px;  
            float: left;  
            background: pink;  
        }  
        #Rsite{  
            width: 302px;  
            height: 600px;  
            float: right;  
            background: purple;  
        }  
        #footer{  
            height: 120px;  
            background: blue;  
        }  
    </style>  
</head>  
<body>  
    <p id="container">  
        <p id="header"></p>  
        <p id="main">  
            <p id="Lsite"></p>  
            <p id="Rsite"></p>  
        </p>  
        <p id="footer"></p>  
    </p>  
</body>  
</html></span>  

效果如下

一个简单首页的布局

作者:网络 来源:Winifred_1
  • 上一篇:css控制border画三角形
  • 下一篇:popup布局