呵呵都怎么想的
宽度自适应的意思就是根据内容来决定宽度长短,这帮发代码的人脑子怎么想的
宽度自适应的意思就是根据内容来决定宽度长短,这帮发代码的人脑子怎么想的
2016-10-18
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>混合布局编程挑战</title>
<style type="text/css">
body{ width:1024px;margin:auto; padding:0; font-size:30px; color:black;}
.top{height:100px;margin:0 auto;background:yellow;}
.main{background:red;}
.left{position:absolute;left:0;top:100px;width:200px;height:450px;background:blue;}
.right{height:450px;margin:0 0 0 210px;background:green;}
.foot{margin:0 auto;height:100px;clear:both;background:purple;}
</style>
</head>
<body>
<div class="top">top</div>
<div class="main">
<div class="right">right</div>
<div class="left">left</div>
</div>
<div class="foot">foot1231123123123123123123123123123123123123123foot1231123123123123123123123123123123123123123</div>
</body>
</html>
举报