简单的 图片布局

图片布局

<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title></title>
	<style type="text/css">
	*{margin: 0px;padding: 0px;font-family: "微软雅黑";}
	body{ background: #F2F4ED;}
	/*大秀场*/
	.box{width: 1190px;height: 260px;margin: 0 auto;background: #fff;/*为方便看清布局而添加的背景颜色,可删除*/}
	.showhd h3{float: left;height: 60px;line-height: 60px;padding-right:20px;}
	.showhd h3 a{font-size: 26px;color: #eea400;text-decoration: none;}
	.showhd nav{float: left;margin-top: 25px;}
	.showhd nav a{font-size: 14px;color: #eea400;text-decoration: none;padding-right:10px;}
	.showhd a:hover{text-decoration: underline;}
	.showimg{width: 1190px;height: 180px;overflow: hidden;}
	.showimg div{width: 220px;height: 180px;background: #f90;float: left;margin-right:22.5px; position: relative;}
	.showimg .imgright{width: 220px;height: 180px;background: #f90;float: left; margin-right: 0px;}
	.showimg div img{width: 220px;height: 180px;}
	.showimg div p{background:rgba(0,0,0,0.3);height: 30px;width: 200px;line-height: 30px;font-size:14px;padding: 0 10px;overflow: hidden;bottom: 0px;left: 0px;position: absolute;text-align: center;}
	.showimg div p a{color: #fff;text-decoration: none;}
	.showimg div p a:hover{text-decoration: underline;}
	</style>
</head>
<body>
<section class="box">
<div class="showhd">
	<h3><a href="">大秀场</a></h3>
	<nav>
		<a href="">美食</a><a href="">小苹果</a><a href="">小李子</a><a href="">小葡萄</a>
	</nav>
</div>
<div style="clear:both"></div>
<div class="showimg">
	<div>
		<a href=""><img src="http://p5.qhimg.com/t01260bd7896d75b642.jpg"></a>
		<p><a href="#">我是呀你的小苹果我是呀你的小苹果我是</a></p>
	</div>
	<div>
		<a href=""><img src="http://p5.qhimg.com/t01260bd7896d75b642.jpg"></a>
		<p><a href="#">我是呀你的小苹果我是呀你的小苹果我是</a></p>
	</div>
	<div>
		<a href=""><img src="http://p5.qhimg.com/t01260bd7896d75b642.jpg"></a>
		<p><a href="#">我是呀你的小苹果我是呀你的小苹果我是</a></p>
	</div>
	<div>
		<a href=""><img src="http://p5.qhimg.com/t01260bd7896d75b642.jpg"></a>
		<p><a href="#">我是呀你的小苹果我是呀你的小苹果我是</a></p>
	</div>

	<div class="imgright">
		<a href=""><img src="http://p5.qhimg.com/t01260bd7896d75b642.jpg"></a>
		<p><a href="#">我是呀你的小苹果我是呀你的小苹果我是</a></p>
	</div>
</div>
</section>
</body>
</html>


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值