zoukankan      html  css  js  c++  java
  • 一个网页布局练习

    <!DOCTYPE html>
    <html>
    <head>
        <title>test </title>
    
    <style type="text/css">
        
    #container{
        width: 1002px;
        background: grey;
    }
    
    #header{
    
        height: 120px;
        background: orange;
    }
    
    #main{
        height: 600px;
        background: green;
    }
    
    #footer{
        height: 120px;
        background: blue;
    
    }
    
    #lside{
        width: 700px;
        float:left;
        height: 600px;
        background: pink;
    }
    
    #rside{
        width: 302px;
        float:right;
        height: 600px;
        background: purple; 
    }
    
    #two{
    
        background: rgb(6, 212, 239);
        width: 340px;
        height: 300px;
        float:left;
    }
    
    #one{
    
        background: rgb(45,34,234);
        width: 340px;
        height: 300px;
        float: right;
    }
    
    #three{
        background: rgb(240, 205, 24);
        width: 340px;
        height: 300px;
        float: left;
    }
    #four{
        background: rgb(20, 245, 57);
        width: 340px;
        height: 300px;
        float: right;
    
    }
    
    </style>
    
    </head>
    <body>
        <div id="container">
            <div id="header"></div>
            <div id="main">
                <div id="lside">
                    <div id="two"></div>
                    <div id="one"></div>
                    <div id="three"></div>
                    <div id="four"></div>
                </div>
                <div id="rside"></div>
            </div>
            <div id="footer"></div>
        </div>
        
    </body>
    </html>

    效果:

  • 相关阅读:
    Creative Cloud 无法连接问题
    HTTP_PROXY
    <video> controlsList
    Electron 问题
    含神经网络的离线AI翻译 APP

    (转载)移动Web开发技巧汇总
    2014年总结
    转载(web app变革之rem)
    火狐不支持backgroundPosition的js插件
  • 原文地址:https://www.cnblogs.com/yfish/p/6390358.html
Copyright © 2011-2022 走看看