5-3編程挑戰
任務三中<body>中按照標準文檔流特征,本來也是先加載right層(它在前),后加載left層(它在后),為什么還要特意要求?編寫的代碼要兼容ie6,怎么做?謝謝!
另,我寫的代碼。幫我看看,懂得同學幫我改正一下,謝謝了!
body{ margin:0; padding:0; _padding:0;font-size:30px;color:#fff}
.top{width:100%;height:100px;background:#ccc;margin:}
.main{width:100%; height:500px;background:red;margin:0 auto;position:relative; overflow:hidden;}
.left{width:200px;height:500px;background:blue;float:left;left:0;top:0;}
.right{width:100%;height:500px;background:green;position:absolute;margin-left:210px;}
.foot{width:100%;background:yellow;clear:both;}
2016-11-14
2016-11-13
? ? ?給你參考一下;
//EN" "
<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{ margin:0; padding:0; font-size:30px; color:#fff}
.top{width:100%;background-color:#ccc;height:70px;}
.main{background-color:#999;width:100%;height:700px;}
.right{float:left;background-color:#333;width:30%;height:700px;}
.left{float:right;background-color:yellow;height:700px;width:68%;}
.foot{width:100%;height:50px;background-color:#222;}
</style>
</head>
<body>
<div class="top">top</div>
<div class="main">
? ? <div class="right">left</div>
? ? <div class="left">right</div>
</div>
<div class="foot">foot</div>
</body>
</html>