浮动定位——布局

 

 

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			* {
				margin: 0;
				padding: 0;
				margin: 0 auto;
			}

			.header {
				margin-top: 10px;
				width: 970px;
				height: 103px;
			}

			.header .logo {
				float: left;
				width: 277px;
				height: 103px;
				background-color: red;
			}

			.header .nav-lan {
				float: right;
				width: 679px;
				height: 103px;
			}

			.header .nav-lan .nav {
				float: right;
				width: 137px;
				height: 49px;
				background-color: green;
			}

			.header .nav-lan .lan {
				float: right;
				width: 679px;
				height: 46px;
				background-color: green;
				margin-top: 8px;
			}

			.center {
				margin-top: 10px;
				width: 970px;
				height: 435px;
			}

			.center .img {
				float: left;
				width: 310px;
				height: 435px;
				background-color: orange;
				margin-right: 10px;
			}

			.center .word {
				width: 650px;
				height: 435px;
				float: left;
			}

			.center .word .left {
				float: left;
				width: 450px;
				height: 400px;
			}

			.center .word .left .one {
				width: 450px;
				height: 240px;
				background-color: blue;
				float: left;
			}

			.center .word .left .two {
				margin-top: 10px;
				width: 450px;
				height: 110px;
				background-color: blue;
				float: left;
			}

			.center .word .left .three {
				margin-top: 10px;
				width: 450px;
				height: 30px;
				background-color: blue;
				float: left;
			}

			.center .word .right {
				width: 190px;
				height: 400px;
				float: right;
				background-color: crimson;
			}

			.center .word .bottom {
				width: 650px;
				height: 25px;
				background-color: darkgreen;
				float: left;
				margin-top: 10px;
			}

			.footer {
				margin-top: 10px;
				width: 970px;
				height: 35px;
				background-color: blue;
			}
		</style>
	</head>
	<body>
		<div class="header">
			<div class="logo">
			</div>
			<div class="nav-lan">
				<div class="nav">
				</div>
				<div class="lan">
				</div>
			</div>
		</div>
		<div class="center">
			<div class="img">
			</div>
			<div class="word">
				<div class="left">
					<div class="one">
					</div>
					<div class="two">
					</div>
					<div class="three">
					</div>
				</div>
				<div class="right">
				</div>
				<div class="bottom">
				</div>
			</div>
		</div>
		<div class="footer">
		</div>
	</body>
</html>

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值