zoukankan      html  css  js  c++  java
  • CSS布局--全屏-常见后台管理系统布局

    完成如上图所示效果,代码如下:

    <!DOCTYPE html>
    <html lang="en">
    <head>
    	<meta charset="UTF-8">
    	<title>Document</title>
    </head>
    <style type="text/css">
    	*{
    		margin: 0;
    		padding: 0;
    	}
    	.head{
    		 100%;
    		height: 50px;
    		background: #000;
    		position: relative;
    	}
    	.left{
    		 220px;
    		background:#de1;
    		position: absolute;
    		top: 50px;
    		bottom: 0;
    	}
    	.right{
    		background:cyan;
    		position: absolute;
    		top: 50px;
    		left: 220px;
    		bottom: 60px;
    		right: 0;
    	}
    	.foot{
    		position: absolute;
    		left: 0;
    		bottom: 0;
    		 100%;
    		height: 60px;
    		background:#ccc;
    	}
    </style>
    <body>
    	<div class="head"></div>
    		<div class="left"></div>
    		<div class="right"></div>
    	<div class="foot"></div>
    </body>
    </html>
    

      

    .head{
            height: 50px;
            background: #000;
            position: absolute;
            left: 220px;
            right: 0;
        }
        .left{
             220px;
            background:#de1;
            position: absolute;
            top: 0px;
            bottom: 0;
        }
        .right{
            background:cyan;
            position: absolute;
            top: 50px;
            left: 220px;
            bottom: 60px;
            right: 0;
        }
        .foot{
            position: absolute;
            left: 0;
            bottom: 0;
             100%;
            height: 60px;
            background:#ccc;
        }
    生命是一场华丽的绽放!
  • 相关阅读:
    django 母版与继承
    django 模板系统
    及时从数据库中取得数据填放进Form表单的多选框中
    django 自带的验证功能
    django Form表单
    AJAX 操作
    django 中间件
    JVM-crash查看hs_err_pid.log日志
    java-log4j日志打印
    tomcat 闪退问题排查
  • 原文地址:https://www.cnblogs.com/clown3/p/7446040.html
Copyright © 2011-2022 走看看