1.DIV+CSS代码,CSS怎么写在div中<div>
<div style="width:500px;height:500px; float:left;background-color:red; margin-right:10px;">
</div>
<div style="width:250px;height:500px; float:left;">
<div style="width:250px;height:200px;background-color:red;"></div>
<div style="width:250px;height:280px;margin-top:20px;background-color:red;"></div>
</div>
</div>
2.写一个简单的DIV+CSS<meta ; charset=utf-8" />无标题文档<style type="text/css">body{ margin:0px; padding:0px;}#container{ width:800px; margin:0px auto;}.A1{ height:30px; background:pink;}.wrap_A2A3{ zoom:1; overflow:hidden;}.A2{ float:left; width:200px; height:80px; background:yellow;}.A3{ float:left; width:600px; height:80px; background:#FF9999;}.A4{ height:30px; background:#FFCCFF;}#wrap_BC{ zoom:1; overflow:hidden;}#B{ float:left; width:100px;}.B1{ height:120px; background:#FFCC66;}.B2{ height:80px; background:#FF66CC;}.B3{ height:180px; background:#CCCCCC;}#C{ float:right; width:700px;}.C1{ height:150px; background:#CC99CC;}.C2{ height:230px; background:#CCFFCC;}.D1{ height:100px; background:#33CCFF;}.D2{ height:80px; background:#CCFFFF;}</style> <body>A1A2 A3A4B1 B2 B3C1 C2D1 D2