博主信息
博文 13
粉丝 0
评论 0
访问量 12723
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
演示双飞翼布局
PHPer博客
原创
978人浏览过

实例

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>演示双飞翼布局</title>
    <style>

.header{
    width: 1000px;
    height: 60px;
    background-color: gray;
    text-align: center;
    list-style: none;
    margin: 10px auto;
}
.text{
    line-height: 60px;
    float: left;
    width: 200px;
}
.text a{
    text-decoration-line:none;
}
.text a:hover{
    font-size: 1.1em;
    color: white;
    background-color:black;
    display: block;
    width: 200px;
    height: 60px;
}
    .content{
        width: 1000px;
        min-height:500px;
        background-color: lightblue;
        margin: 10px auto;
    }
    .left{
        width: 200px;
        min-height: 500px;
        background-color: pink;
    }
    .right{
        width: 200px;
        min-height: 500px;
        background-color: green;
    }
    .main{
        width: 600px;
        min-height: 500px;
        background-color: blue;
    }
    .left,.main,.right{
        float: left;
    }
    .left{
        margin-left: -800px;
    }
    .main{
        margin-left: 200px;
    }

.footer{
    margin: 10px auto;
    width: 1000px;
    height: 60px;
    background-color: gray;
}
        .footer p{
            float: left;
        }
        .footer p:hover{
            color: white;
            font-size: 1.2em;
        }
        .p1{
            width: 300px;
            padding-left: 60px;
        }
        .p2{
            width: 200px;
            padding-left: 60px;
        }
        .p3{
            width: 300px;
            padding-left: 70px;
        }

    </style>
</head>
<body>
<!--头部-->
<div class="container">
    <div class="header">
        <div class="nav">
            <li class="text"><a href="">首页</a></li>
            <li class="text"><a href="">公司新闻</a></li>
            <li class="text"><a href="">最新产品</a></li>
            <li class="text"><a href="">关于我们</a></li>
            <li class="text"><a href="">联系我们</a></li>
        </div>
    </div>
</div>

<!--主体-->
<div class="content">
    <div class="wrap">
        <div class="main">主体</div>
    </div>
    <div class="left">左侧</div>
    <div class="right">右侧</div>
</div>

<!--页脚-->
<div class="box">
    <div class="footer">
        <p class="p1">常州犇牛机场股份***</p>
        <p>|</p>
        <p class="p2">0519-12340000</p>
        <p>|</p>
        <p class="p3">苏IPC2019050711-1</p>
    </div>
</div>
</body>
</html>

运行实例 »

点击 "运行实例" 按钮查看在线实例


批改状态:未批改

老师批语:
本博文版权归博主所有,转载请注明地址!如有侵权、违法,请联系admin@php.cn举报处理!
全部评论 文明上网理性发言,请遵守新闻评论服务协议
0条评论
作者最新博文
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号

  • 登录PHP中文网,和优秀的人一起学习!
    全站2000+教程免费学