dw中 div位置问题
<body>
<div style="width:600px; margin:0 auto;">
<div style="width:300px; float:left;">
<div style=" height:100px; background:#ffa195;">div_a</div>
<div style=" height:100px; background:#fadd9b;">div_b</div>
<div style=" height:100px; background:#e3faaa;">div_c</div>
</div>
<div style="width:300px; float:right; height:300px; background:#acdffa;">div_d</div>
</div>
</body>
<body>
<div style="width:600px; margin:0 auto;">
<div style="width:300px; float:right; height:300px; background:#acdffa;">div_d</div>
<div style="width:300px;">
<div style=" height:100px; background:#ffa195;">div_a</div>
<div style=" height:100px; background:#fadd9b;">div_b</div>
<div style=" height:100px; background:#e3faaa;">div_c</div>
</div>
</div>
</body>
2个有一点点区别,请注意分辨,不过都可以解决你的问题
谢谢您 一会儿都试试````
<style>
.xxx{float:left; width:800px; height:600px;}
.a{height:200px; background:#F00;}
.b{height:200px; background:#0F0;}
.c{height:200px; background:#00F;}
.d{float:left; width:200px; height:600px; background:#FF0;}
</style>
<div class="xxx">
<div class="a"></div>
<div class="b"></div>
<div class="c"></div>
</div>
<div class="d"></div>
div a b c 添加样式 float:left; clear:both; overflow:hidden;
div d 添加样式 float:right;
希望对你有帮助
嗯嗯 谢谢您 我总宽设的960 abc宽都是650 d的宽度是300 按您说这个试了一下还是不行,不知道哪的问题自己没设置对,好纠结!
在布局上 做出调整 也能很好的 结绝
<style>
*{ margin:0px; padding:0px;}
.zong{width:600px; border:#000 1px solid; height:450px;}
.a{width:400px; height:150px; float:left; overflow:hidden; background:red;}
.b{width:400px; height:150px; float:left; overflow:hidden; background:yellow;}
.c{width:400px; height:150px; float:left; overflow:hidden; background:blue;}
.d{width:200px; height:450px; float:right; overflow:hidden; background:#ccc;}
</style>
<div class="zong">
<div class="a">div_a</div>
<div class="d">div_d</div>
<div class="b">div_b</div>
<div class="c">div_c</div>
</div>
效果图:
IE8
IE7内核的 搜狗浏览器
IE6
代码图