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>

    效果:

  • 相关阅读:
    POJ1006(中国剩余定理)
    Ubuntu16.04安装jupiter
    OpenGL.tutorial06键盘和鼠标
    OpenGL.教程
    OpenGL.Qt532.cube
    Qt551.主窗体Margin
    Qt551.窗口滚动条
    Qt551.OpenGL.ZC简单例子
    Qt5OpenGL.顶点像素大小设置
    OpenGL.Tutorial03_Matrices_测试
  • 原文地址:https://www.cnblogs.com/yfish/p/6390358.html
Copyright © 2011-2022 走看看