如何使两个div元素与另一个div元素左右粘合,就像以下示例一样?
<div id="container">
<div id="left">Left.</div>
<div id="box">This is a box.</div>
<div id="right">Right.</div>
</div>
+#container--------------------------------------------------+
| |
| |
| +#left---+#box-------------------+#right--+ |
| | | | | |
| | | | | |
| | | | | |
| | Left. | This is a box. | Right. | |
| | | | | |
| | | | | |
| +--------+-----------------------+--------+ |
| |
| |
+------------------------------------------------------------+
table
比使用div
更合适。 - niksvp