4个div,想把这4个div放到一个大div里面,上面两个,下面两个,像田字一样,请问怎么写呢

<div style="width:auto; height:572px; float:left;">
<div style="width:230PX; height:279px; background-image:url(111.files/7cbd70b2ffcbcc1cae6be8467513694c.gif);">1</div>
<div style="width:245PX; height:279px; background-image:url(111.files/be5ad92617cc044ec45f769c376532a2.gif);">2</div>
<div style="width:230PX; height:293px; background-image:url(111.files/0a91f5edb4f66cd1731fb99700ad35c8.gif);">3</div>
<div style="width:245PX; height:293px; background-image:url(111.files/1430885afa0fa68e0c87409c968ee3c5.gif);">4</div>
</div>

第1个回答  2011-05-23
理论上没问题、你把里面的DIV都左浮动试试呢、
第2个回答  2011-05-23
<div style="width:auto; height:572px; float:left;">
<div style=" float:left;width:230PX; height:279px; background-image:url(111.files/7cbd70b2ffcbcc1cae6be8467513694c.gif);">1</div>
<div style="float:right;width:245PX; height:279px; background-image:url(111.files/be5ad92617cc044ec45f769c376532a2.gif);">2</div>
<div style="float:left;width:230PX; height:293px; background-image:url(111.files/0a91f5edb4f66cd1731fb99700ad35c8.gif);">3</div>
<div style="float:right;width:245PX; height:293px; background-image:url(111.files/1430885afa0fa68e0c87409c968ee3c5.gif);">4</div>
</div>
既然是摆放田字格 还不如用TABLE
第3个回答  2011-05-24
加的不多,在后面,另外给改了一下:
<style type="text/css">
#content{width:475px;height:572px;float:left;}
#a{width:230PX;height:279px;background-image:url(111.files/7cbd70b2ffcbcc1cae6be8467513694c.gif);float:left;}
#b{width:245PX;height:279px;background-image:url(111.files/be5ad92617cc044ec45f769c376532a2.gif);float:left;clear:right;}
#c{width:230PX;height:293px;background-image:url(111.files/0a91f5edb4f66cd1731fb99700ad35c8.gif);float:left;}
#d{width:245PX;height:293px;background-image:url(111.files/1430885afa0fa68e0c87409c968ee3c5.gif);float:left;clear:right;}
</style>
</head>
<body>
<div id="content">
<div id="a">1</div>
<div id="b">2</div>
<div id="c">3</div>
<div id="d">4</div>
</div>
</body>本回答被提问者采纳
第4个回答  2011-05-24

<style type="text/css">
#box
#top
#bottom
</style>
<div id="box">
<div id="top"></div>
<div id="bottom"></div>
</div>

拿去试试吧