zoukankan      html  css  js  c++  java
  • html5-相对定位

    *{
        margin: 0px;
        padding: 0px;
    }
    div{
         300px;
        height: 300px;
    }
    #div1{
        background: rgba(255,0,0,0.5);
        position: relative;
        left: 50px;
    z-index: 2
    }
    #div2{
        background: rgba(0,255,0,0.5);
        position: relative;
        left: 150px;
        top: -100px;
        z-index: 3
        
    }
    #div3{
        background: rgba(0,0,255,0.5);
        position: relative;
        left: 300px;
        top: -300px;
        z-index: 1
    }

    /*
    #div1{
        background: rgba(255,0,0,0.5);    
        position:fixed;
        left: 100px;
    }
    #div2{
        background: rgba(0,255,0,0.5);
        position:absolute;
        left: 200px;
    }
    #div3{
        background: rgba(0,0,255,0.5);
        position: absolute;
        left: 300px;
    }*/

    天道酬勤,厚积薄发。 君子之行,静以修身,俭以养德。 非淡泊无以明志,非宁静无以致远。 如有恒,何须三更起,半夜眠;最怕莫,三天打鱼两天晒网,竹篮打水一场空。
  • 相关阅读:
    观后感
    用户故事排球教练助手
    本周工作量
    本周个人作业
    个人工作量
    个人作业
    产品计划总结
    典型用户和场景总结
    排球比赛计分规则
    PowerShell ISE:Windows Server 2008 R2默认不安装
  • 原文地址:https://www.cnblogs.com/houweidong/p/7612634.html
Copyright © 2011-2022 走看看