表COLSPAN& ROWSPAN [英] Table COLSPAN & ROWSPAN

查看:53
本文介绍了表COLSPAN& ROWSPAN的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我需要生成一个如下所示的HTML表格:

(两个单元格,A& B)


-------------------

| | |

| | B |

| | |

| | -------- |

| A |

| |

| |

-------------------


换句话说,我可以使用rowspan& ; colspan一起得到一个细胞

流到另一个细胞?我需要单元格A中的文本来包裹单元格

B.它必须这样做,而不是在一个单独的,右对齐的表格中

for B.需要在一张桌子上。


我想:

< TABLE border = 1px>

< TR>< TD ROWSPAN = 2 COLSPAN = 2> A< / TD>< TD> B< / TD>< / TR>

< TR>< / TR>

< / TABLE>


(但显然不是!)


任何人都知道怎么做?


谢谢

Hi

I need to generate an HTML table that looks like the following:
(Two cells, A & B)

-------------------
| | |
| | B |
| | |
| |--------|
| A |
| |
| |
-------------------

In other words, can I use the rowspan & colspan together to get a cell
to flow around another cell? I need text in cell A to wrap around cell
B. It HAS to be done like this, not in a separate, right-aligned table
for B. Needs to be in a single table.

I thought:
<TABLE border=1px>
<TR><TD ROWSPAN=2 COLSPAN=2> A </TD><TD> B </TD></TR>
<TR></TR>
</TABLE>

(but obviously not!)

Anyone know how?

Thanks

推荐答案

pl*******@yahoo.com 写道:
pl*******@yahoo.com wrote:
我需要生成一个如下所示的HTML表:


你确定你不需要生成HTML看起来如下

但不一定是表格?

(两个单元格,A& B)

--- ----------------
| | |
| | B |
| | |
| | -------- |
| A |
| |
| |
-------------------

换句话说,我可以使用rowspan& colspan一起让一个细胞围绕另一个细胞流动?


不,不是我所知道的。

我需要单元格A中的文字来包裹单元格B.


不,你不。你需要(想要)单元格A中的文本来包裹B / /
是什么。 (提示:不是一个单元格)

它必须这样做,


我会拿最后一行加上大量的盐,因为如果那个

都是真的,你不需要问任何东西。

不在一个单独的,右对齐的表中
对于B.需要在一张桌子里。


让我猜一下。你有一个聪明的老师在测试你吗?

我想:
< TABLE border = 1px>
< TR>< TD ROWSPAN = 2 COLSPAN = 2> A< / TD>< TD> B< / TD>< / TR>
< TR>< / TR>
< / TABLE>

(但显然不是!)


你是对的。

任何人都知道怎么做?
I need to generate an HTML table that looks like the following:
You''re sure you don''t need to generate HTML to look like the following
but not necessarily a table?
(Two cells, A & B)

-------------------
| | |
| | B |
| | |
| |--------|
| A |
| |
| |
-------------------

In other words, can I use the rowspan & colspan together to get a cell
to flow around another cell?
Nope, not that I know of.
I need text in cell A to wrap around cell B.
No you don''t. You need (want) text in cell A to wrap around whatever B
is. (hint: not a cell)
It HAS to be done like this,
I''ll take that last line with a large grain of salt, because if that
were true, you didn''t need to ask anything.
not in a separate, right-aligned table
for B. Needs to be in a single table.
Let me guess. You have a clever teacher who is testing you?
I thought:
<TABLE border=1px>
<TR><TD ROWSPAN=2 COLSPAN=2> A </TD><TD> B </TD></TR>
<TR></TR>
</TABLE>

(but obviously not!)
You''re right.
Anyone know how?




是的。

放弃一个单元格想法的流动,并在表格单元格(A)中找到一个浮动的div(B)

。也就是说,如果你有令人信服的理由

根本就使用表格,但这就是你的......商业:-)


-

Els http://locusmeus.com/

Sonhos vem。 Sonhos v?£。 O resto ?? crisfeito。

- Renato Russo -



Yes.
Abandone the flowing around a cell idea, and go for a floated div (B)
inside a table cell (A). That is, if you have a compelling reason to
use tables at all, but that''s your eh.. business :-)

--
Els http://locusmeus.com/
Sonhos vem. Sonhos v?£o. O resto ?? imperfeito.
- Renato Russo -


Jeez。另一个认为他/她如此聪明的ijit&好笑。


这是一个HTML时事通讯,我已经尝试了很多浮动div

选项&右对齐的表格,但在最受欢迎的邮件客户端

(雅虎,hotmail,outlook)它并不是正确的,因为它们改变了这些div的html
并且有很古怪的方式来显示它。


如果我可以使用一个简单的表格,那将是理想的,但是我需要一个

单元格才能流动围绕另一个。

Jeez. Another ijit that thinks he/she is so smart & funny.

It''s for an HTML newsletter and I''ve tried a lot of floating div
options & right aligned tables, but in the most popular mail clients
(yahoo, hotmail, outlook) it doesn''t come out right because they alter
the html of such divs etc. and have quirky ways of displaying it.

It would be ideal if I could use a simple table, but then I need one
cell to flow around the other.


pl ***** **@yahoo.com 写道:
pl*******@yahoo.com wrote:
Jeez。另一个认为他/她如此聪明的ijit&滑稽。


我们这里有很多人。

还有很多谷歌团体用户似乎没有意识到

很多知识渊博的人都会过滤掉任何帖子,因为那些Google群组用户习惯性地不会引用他们的内容回复。


提示:
http://www.safalra.com/special/googlegroupsreply/

这是一份HTML简报,我尝试了很多漂浮的div
选项&正确对齐的表格,但在最受欢迎的邮件客户端(雅虎,hotmail,outlook)它并不是正确的,因为它们改变了这些div等的html并且具有古怪的显示方式它。


怀疑它是否像尝试这样做一样古怪:

如果我可以使用一个简单的表格,那将是理想的,但我需要一个
单元格绕着另一个流动。
Jeez. Another ijit that thinks he/she is so smart & funny.
There''s loads of us here.
There''s also loads of Google Groups users who don''t seem to realise
that a lot of knowledgeable people are filtering out any posts by
Google Groups users, because those Google Group users have a habit of
not quoting what they are replying to.

Hint:
http://www.safalra.com/special/googlegroupsreply/
It''s for an HTML newsletter and I''ve tried a lot of floating div
options & right aligned tables, but in the most popular mail clients
(yahoo, hotmail, outlook) it doesn''t come out right because they alter
the html of such divs etc. and have quirky ways of displaying it.
Doubt it''s as quirky as trying to do this:
It would be ideal if I could use a simple table, but then I need one
cell to flow around the other.




我在ijit搞笑/聪明的回复中提到了(iirc)那不是

可能。


-

Els http://locusmeus.com/

Sonhos vem。 Sonhos v?£。 O resto ??不好的。

- Renato Russo -



I did mention (iirc) in my ijit funny/smart reply that that isn''t
possible.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos v?£o. O resto ?? imperfeito.
- Renato Russo -


这篇关于表COLSPAN&amp; ROWSPAN的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆