博主信息
博文 71
粉丝 1
评论 1
访问量 102153
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
327-三列布局之双飞+圣杯
小威的博客
原创
773人浏览过
  • 三列布局之双飞翼效果图如下:

QQ截图20180328144208.jpg

  • 三列布局之双飞翼源代码如下:


实例

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>三列布局之双飞翼</title>
	<style type="text/css">
		.top,.footer {
			width: 100%;
			height: 100px;
			text-align: center;
		}
		.content {
			width: 1000px;
			height: 100%;
			margin: auto;
		}
		.top {
			 width:1000px;
			 margin: auto;
			 background-image: url("../images/dh.png") ;
		}
		.zuti {
			width: 1000px;
			margin: auto;
			overflow: hidden;
		}
		.wrap {
			width: 100%;
			float: left;
		}
		.main img {
			margin-left: 200px;
		    width: 600px;
		    height: 500px;
		    vertical-align: middle;
		}
		.left, .right {
			width: 200px;
			float: left;
			min-height: 500px;
			text-align: center;
			background-image: url(../images/cb.jpg);
		}
		.left {
			margin-left: -100%;
		}		
		.right {
			margin-left: -200px;
		}
		h1 {
			color: red;
			padding-top: 12px;
		}
		h2 {
			color: #ffd700;
			padding-top: 150px;
		}
		h3 {
			color: #ff00ff;
			padding-top: 10px;
		}
	</style>
</head>
<body>

	<div class="top">
		<div class="content">
			<h1>恭贺赵铁柱和王二妮新婚之喜</h1>
		</div>
	</div>

	<div class="zuti">
		<div class="wrap">
			<div class="main">
				<img src="../images/jhz.jpg">
			</div>
		</div>
		<div class="left">
		    <h2>婚礼流程</h2>
			<h3>宾客登记</h3>
			<h3>随礼签名</h3>
			<h3>合影留念</h3>
			<h3>进入喜宴</h3>
		</div>
		<div class="right">
            <h2>喜宴菜谱</h2>
            <h3>百年好合</h3>
            <h3>早生贵子</h3>
            <h3>甜甜蜜蜜</h3>
            <h3>花好月圆</h3>
		</div>
	</div>

	<div class="footer">
		<div class="content">
			<img src="../images/hf.jpg">
		</div>
	</div>
	</div>
</body>
</html>

运行实例 »

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

  • 三列布局之圣杯效果图如下:

QQ截图20180328183540.jpg

  • 三列布局之圣杯源代码如下:

实例

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>三列布局之圣杯</title>
	<style type="text/css">
		.top,.footer {
			width: 100%;
			height: 60px;
			background-color: #696969;
		}
		.footer {
			clear: both;
		}
		.content {
			width: 1000px;
			height: 100%;
			background-color: #ffd700;
			margin: auto;
			text-align: center;
			line-height: 60px;
		}
		.zuti {
			width: 600px;
			background-color: #667; 
			margin: auto;
			/*overflow: hidden;*/
			padding:0 200px;
			text-align: center;
		}
		.main {
			min-height: 500px;
			width: 100%;
			float: left;
			background-color: #0000ff;
			color: red;
			font-size: 50px;
			line-height: 500px;
		}
		.left, .right {
			width: 200px;
		    min-height: 500px;
		    float:left;
			background-color: #00ff00;
		}
		.left {
		    margin-left: -100%;
		    position: relative;
		    left: -200px;
	    }
		.right {
			margin-left: -200px;
			position: relative;
			right: -200px;
		}
		h1 {
			color: red;
		}
		h2 {
			color: #ffd700;
			padding-top: 100px;
		}
		h3 {
			color: #ff00ff;
			padding-top: 10px;
		}
	</style>
</head>
<body>
<div class="top">
	<div class="content">
		<h1>恭贺赵铁柱和王二妮新婚之喜</h1>
	</div>
</div>
<div class="zuti">
	<div class="main">赵铁柱 王二妮</div>
	<div class="left">
            <h2>婚礼流程</h2>
			<h3>宾客登记</h3>
			<h3>随礼签名</h3>
			<h3>合影留念</h3>
			<h3>进入喜宴</h3>
	</div>
	<div class="right">
		    <h2>喜宴菜谱</h2>
            <h3>百年好合</h3>
            <h3>早生贵子</h3>
            <h3>甜甜蜜蜜</h3>
            <h3>花好月圆</h3>
	</div>
</div>
<div class="footer">
	<div class="content">
		<h1>欢迎参加我们的婚礼</h1>
	</div>
</div>
</body>
</html>

运行实例 »

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


  • 三列布局之圣杯手抄如下:

1.jpg2.jpg

批改状态:合格

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

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

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