zoukankan      html  css  js  c++  java
  • Relative与Absolute组合使用

    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="utf-8">
    	<title>框架</title>
    	<style type="text/css">
    	div{border: solid black 1px;}
    	h1{
    		color: red;
    	}
    	div{
    		background-color: #0fc;
    	}
    	.box1{
    		 800px;
    		height: 100px;
    		position: relative;
    	}
    	.box2{
    		 200px;
    		height: 300px;
    		top: 100px;
    		position: absolute;
    	}
    	.box3{
    		 400px;
    		height: 100px;
    		left: 200px;
    		top: 100px;
    		position: absolute;	
    	}
    	.box4{
    		 400px;
    		height: 100px;
    		left: 200px;
    		top: 200px;
    		position: absolute;
    	}
    	.box5{
    		 400px;
    		height: 100px;
    		left: 200px;
    		top: 300px;
    		position: absolute;
    	}
    	.box6{
    		 200px;
    		height: 300px;
    		left: 600px;
    		top: 100px;
    		position: absolute;
    	}
    	</style>
    </head>
    <body>
        <h1>Relative与Absolute组合使用</h1>
        <br>
        <div class="box1">
           <div class="box2"></div>
           <div class="box3"></div>
           <div class="box4"></div>
           <div class="box5"></div>
           <div class="box6"></div>
        </div>
    </body>
    </html>
    

      

  • 相关阅读:
    Matrix Chain Multiplication[HDU1082]
    Color a Tree[HDU1055]
    Piggy-Bank[HDU1114]
    Catching Fish[HDU1077]
    用单位圆覆盖尽量多的点
    LianLianKan[HDU4272]
    Travelling
    求多边形面积
    方格取数(1)
    Pebbles
  • 原文地址:https://www.cnblogs.com/ljming/p/9703579.html
Copyright © 2011-2022 走看看