zoukankan      html  css  js  c++  java
  • position

    <!DOCTYPE HTML>
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>定位</title>
    <style type="text/css">
    div{
    background-color: #0fc;
    border:1px solid #000
    }
    h1{
    text-align: center;
    color: pink;
    font-size: 12;
    }
    .divcss1{
    position:absolute;
    800px;
    height:100px;
    position: relative;
    }
    .divcss2{
    position:relative;
    200px;
    height:300px;
    top: 100px;
    background:#0fc;
    }
    .divcss3{
    400px;
    height: 100px;
    left: 200px;
    top: 100px;
    position: absolute;
    background: yellow;
    }
    .divcss4{
    400px;
    height: 100px;
    left: 200px;
    top: 200px;
    position: absolute;
    background: gray;
    }
    .divcss5{
    400px;
    height: 100px;
    left: 200px;
    top: 300px;
    position: absolute;
    background: yellow;
    }
    .divcss6{
    200px;
    height: 300px;
    left: 600px;
    top: 100px;
    position: absolute;
    }
    </style>
    </head>
    <body>
    <h1>Relative和Absolute组合使用</h1><br>
    <div class="divcss1">
    <div class="divcss2"></div>
    <div class="divcss3"></div>
    <div class="divcss4"></div>
    <div class="divcss5"></div>
    <div class="divcss6"></div>
    </div>

    </body>
    </html>

  • 相关阅读:
    psy & vr
    psy 2
    psy
    linux c中select使用技巧
    hostent h_addr_list
    gethostbyname() -- 用域名或主机名获取IP地址
    c_select 调用参数说明
    [NYOJ 737] 石子合并(一)
    [HDU 1059] Dividing
    [HDU 1789] Doing Homework again
  • 原文地址:https://www.cnblogs.com/scg0624/p/9721374.html
Copyright © 2011-2022 走看看