为了账号安全,请及时绑定邮箱和手机立即绑定

用div和css做框架

用div和css做框架

Triste旧恋 2016-11-01 22:13:33
这该怎么做
查看完整描述

4 回答

?
Dling

TA贡献10条经验 获得超0个赞

<div class="container">
	<div class="head"></div>
	<div class="banner"></div>
	<div class="wrap">
		<div class="left"></div>
		<div class="right"></div>
	</div>
	<div class="footer"></div>
</div>
<style type="text/css">
	.container{
		width: 1000px;
		margin: 0 auto;
		padding: 10px;
		background: rgba(0,0,0,.3);
	}
	.head,.banner,.wrap{margin-bottom: 10px;}
	.head{
		height: 137px;
		background: rgba(0,0,255,.5);
	}
	.banner{
		height: 307px;
		background: rgba(0,0,0,.5);
	}
	.wrap{
		padding: 10px 0;
		overflow: hidden;
		background: rgba(0,0,255,.2);
	}
	.left{
		float: left;
		width: 636px;
		height: 220px;
		background: rgba(0,255,0,.5);
	}
	.right{
		float: right;
		width: 300px;
		height: 200px;
		background: rgba(255,0,0,.5);
	}
	.footer{
		height: 100px;
		background: rgba(0,0,0,.5);
	}
	</style>

//img1.sycdn.imooc.com//5822e6450001a39b15170918.jpg


就是这个样子咯

查看完整回答
反对 回复 2016-11-09
?
侠客岛的含笑

TA贡献552条经验 获得超285个赞

7个DIV

查看完整回答
反对 回复 2016-11-01
  • 4 回答
  • 1 关注
  • 1433 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信