如何使用div创建此类结构 [英] How do I create this type of structure with divs
问题描述
我一直在玩div,但我一直有问题
创建适用于IE的布局和Firefox。我正在尝试创建一个类似于下表的布局
:
< table align =" center"宽度= QUOT; 700" border =" 1">
< tr>
< td>
< table align =" center" width =" 500">
< tr>
< td align =" left"> AAA< / td>
< td align =" left"> BBB< / td>
< / tr>
< tr>
< td align =" left"> CCC< / td>
< td align =" left"> DDD< / td>
< ; / tr>
< tr>
< td colspan =" 2" align =" center"> EEE< / td>
< / tr>
< / table>
< / td>
< / tr>
< / table>
我不想做任何绝对的事。这基本上是一个输入
表格很好地放在我的页面内。
帮助赞赏。谢谢。
Hi,
I''ve been playing around with divs, but I''ve been having issues
creating layouts that work in both IE and Firefox. I''m trying to create
a layout similar to the following table:
<table align="center" width="700" border="1">
<tr>
<td>
<table align="center" width="500">
<tr>
<td align="left">AAA</td>
<td align="left">BBB</td>
</tr>
<tr>
<td align="left">CCC</td>
<td align="left">DDD</td>
</tr>
<tr>
<td colspan="2" align="center">EEE</td>
</tr>
</table>
</td>
</tr>
</table>
I don''t want to do anything absolute. This is basically so an input
form sits nicely inside my page.
Help appreciated. Thanks.
推荐答案
Spondishy写道:
Spondishy wrote:
创建适用于IE和Firefox的布局。我正在尝试创建一个类似下表的布局:
[剪切表结构]
我不想要做任何绝对的事。这基本上是一个输入
表单很好地位于我的页面内。
Hi,
I''ve been playing around with divs, but I''ve been having issues
creating layouts that work in both IE and Firefox. I''m trying to create
a layout similar to the following table:
[snip table structure]
I don''t want to do anything absolute. This is basically so an input
form sits nicely inside my page.
输入表单可以被视为表格数据imo。我使用表格来支付那些
。它们可以使用CSS完成,但我发现它有更多的缺点
而不是优点。
-
Els http://locusmeus.com/
Sonhos vem。 Sonhos v?£。 O resto ??瑕疵。
- Renato Russo -
现在玩:挤压 - 今晚爱你
Input forms can be considered tabular data imo. I use tables for
those. They can be done using CSS, but I find it has more drawbacks
than advantages.
--
Els http://locusmeus.com/
Sonhos vem. Sonhos v?£o. O resto ?? imperfeito.
- Renato Russo -
Now playing: Squeeze - Loving You Tonight
它肯定会救我那是肯定的。我最终得到了一些
疯狂的div嵌套(居中和左对齐,有一些花车为
好措施)。
这是典型的,还是只是我?
It would certainly save me time thats for certain. I ended up with some
crazy div nesting (centering and left aligning, with some floats for
good measure).
Is this typical, or just me?
Spondishy写道:
Spondishy wrote:
这肯定会节省我的时间某些。我最终得到了一些疯狂的div嵌套(居中和左对齐,有一些花车用于
好的措施)。
这是典型的,还是仅仅是我?
It would certainly save me time thats for certain. I ended up with some
crazy div nesting (centering and left aligning, with some floats for
good measure).
Is this typical, or just me?
我不会称之为典型,但它肯定不仅仅是你;-)
-
Els http://locusmeus.com/
Sonhos vem。 Sonhos v?£。 O resto ?? crisfeito。
- Renato Russo -
现在玩:挤压 - 交叉点
I wouldn''t call it typical, but it''s certainly not just you either ;-)
--
Els http://locusmeus.com/
Sonhos vem. Sonhos v?£o. O resto ?? imperfeito.
- Renato Russo -
Now playing: Squeeze - Up The Junction
这篇关于如何使用div创建此类结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!