博主信息
博文 28
粉丝 1
评论 0
访问量 21559
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
2019.4.29作业
关超的博客
原创
671人浏览过
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>双飞翼布局</title>
<style type="text/css">
	*{ margin:0; padding:0;}
	/*页头*/
	.header{ background-color:#ccc;}
	.header .headermenu{ width:1000px; height:50px; background-color:#444; margin:0 auto;}
	.header .headermenu .nav{ list-style:none;}
	.header .headermenu .nav a{ text-decoration:none; color:#fff; width:100px; height:50px; line-height:50px; float:left; text-align:center;}
	.header .headermenu .nav a:hover{background-color:#ff6700;}
	
	/*主体*/
	.main{ background-color:pink; width:1000px;margin:5px auto; min-height:520px; overflow:hidden;}
	.warp{ width:inherit; min-height:520px; background-color:#C9F;}
	.left{background-color: lightgreen; width:200px; min-height:520px;}
	.right{ background-color:lightblue; width:200px; min-height:520px;}
	.warp, .left, .right{float: left;}

	.content{padding-left: 200px; padding-right: 200px;}
	.left{ margin-left:-100%;}
	.right{ margin-left:-200px;}
	/*页尾*/
	.footer{background-color:#ccc;}
	.footer .footercontent{ width:1000px; margin:0 auto; background-color:#444; height:50px; line-height:50px;color:#ccc;text-align:center;}
	.footer .footercontent a{text-decoration:none; }
	.footer .footercontent a:hover{color:#fff;}
</style>
</head>

<body>
	<div class="container">
		<div class="header">
        	<div class="headermenu">
                <ul class="nav">
                    <li><a href="#">首页</a></li>
                    <li><a href="#">公司新闻</a></li>
                    <li><a href="#">公司产品</a></li>
                    <li><a href="#">联系我们</a></li>
                </ul>
            </div>
		</div>
        
        <div class="main">
        	<div class="warp">
            	<div class="content">双飞翼主体</div>
            </div>
            <div class="left">我是左侧内容</div>
            <div class="right">我是右侧内容</div>
           
        </div>
        
        <div class="footer">
        	<div class="footercontent">
                <a>@PHP中文网版权所有</a> | 
                <a>400-123-45678</a> | 
                <a>ICP-10000-0000</a>     
            </div>                   
        </div>
	</div>
</body>
</html>

QQ图片20190429232430.png

本博文版权归博主所有,转载请注明地址!如有侵权、违法,请联系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+教程免费学