• css练习 简单布局


    <!DOCTYPE html>
    <html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <link href="style/style.css" rel="stylesheet" type="text/css"/>
        <script type="text/javascript" src="js.js"></script>
        <style type="text/css">
    
        </style>
        <script type="text/javascript">
    
        </script>
    </head>
    <body>
    <div id="head">标题栏</div>
    <div id="mainL">
        <ul>
            <li><a href="#">功能测试一</a></li>
            <li><a href="#">功能测试二</a></li>
            <li><a href="#">功能测试三</a></li>
            <li><a href="#">功能测试四</a></li>
        </ul>
    </div>
    <div id="mainC">中间内容</div>
    <div id="mainR">右内容</div>
    <div id="foot"><div id="footContent">版权所有,侵权必究<br/>All rights reserved. </div></div>
    </body>
    </html>
    

      

    * {
        margin: 0;
        padding: 0;
    }
    
    #head {
        border: 1px solid black;
        height: 80px;
        font-size: 30px;
        font-weight: bold;
        font-family: "黑体", sans-serif;
        line-height: 80px;
        text-align: center;
    }
    
    #mainL {
        border: 1px solid #000000;
        width: 25%;
        height: 700px;
        float: left;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    #mainC {
        border: 1px solid #000000;
        width: 50%;
        height: 700px;
        margin-left: 2.3%;
        float: left;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    #mainR {
        border: 1px solid #000000;
        width: 20%;
        height: 700px;
        float: right;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    #foot {
        border: 1px solid black;
        display: table;
        width: 100%;
        height: 60px;
        text-align: center;
    }
    
    #footContent {
        display: table-cell;
        vertical-align: middle;
        margin-top: 10 px9; /*IE无table,table-cell,兼容IE*/
    }
  • 相关阅读:
    项目在入口加一个简单的密码验证
    关于APICloud使用心得(原创)
    vue、React Nactive的区别(转载)
    js的Element.scrollIntoView的学习
    立个flag---每天一篇博客
    ACID理解
    CAP原理与最终一致性 强一致性 弱一致性
    事物隔离级别
    分布式事务
    MySQL日志
  • 原文地址:https://www.cnblogs.com/i124q29/p/3854151.html
Copyright © 2020-2023  润新知