码迷,mamicode.com
首页 > 其他好文 > 详细

圣杯布局

时间:2016-04-20 15:00:24      阅读:131      评论:0      收藏:0      [点我收藏+]

标签:

<!DOCTYPE html>
<html>
<meta name="name" content="content" charset=‘utf-8‘>
<head>
	<title></title>
</head>
<style type="text/css" media="screen">
	.by{padding-left:180px;padding-right: 200px;}
	.main{width: 100%;height: 400px;background: red;float: left;}
	.left{width: 180px;float: left;background: green;height: 300px;position: relative;margin-left: -100%;right: 180px;overflow: hidden;}
	.right{width: 200px;float: left;background: blue;height: 300px;position: relative;margin-right: -200px;}
	
</style>
<body>
<div class="by">
	<div class="main">
	
	</div>
	<div class="left">
	
	</div>
	<div class="right">
	
	</div>
</div>
</body>
<script  type="text/javascript" charset="utf-8" async defer>
	
</script>
</html>

  

圣杯布局

标签:

原文地址:http://www.cnblogs.com/mk2016/p/5412644.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!