如果未指定,单元格的默认高度是多少? [英] What is the default height of a cell if unspecified?

查看:89
本文介绍了如果未指定,单元格的默认高度是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我有类似的话,


< TABLE>< TR>< TD STYLE ="''Font-Family:Arial''"> Arial

文字< / TD>< / TR>< / TABLE>


单元格的高度是多少?我相信这将是

对应的字体...但我怎么知道?这有什么

文件吗?任何帮助将不胜感激..


问候,

Rithish。

解决方案

< blockquote> ri*****@dacafe.com (Rithish)写道:

如果我有类似的东西,

< TABLE>< TR>< TD STYLE ="''Font-Family:Arial''"> Arial
Text< ; / TD>< / TR>< /表>


你的风格规则附加额外报价是什么?

单元格的高度是多少?我相信它会对应于使用的字体......但我怎么知道?


在这种情况下,单元格的高度将是行的高度

包含单词Arial Text的框(假设它全部适合一个

行)。这通常大约是1.2 *字体大小。

表格单元格的顶部和底部填充将高于表格单元格边界之前的上限和下限。

这有什么
文件吗?任何帮助将不胜感激..



http://www.w3.org/TR/CSS2/tables.html#height-layout


史蒂夫
< br $> b $ b -

我的理论给你起见,我的异端邪说你们,

我从不回信,你不喜欢我的领带" - 医生


Steve Pugh< st *** @ pugh.net> < http://steve.pugh.net/>


ri * ****@dacafe.com (Rithish)在留言中写道:< fd ************************* @ posted .google.c om> ...

< TABLE>< TR>< TD STYLE ="''Font-Family:Arial''">


无效的CSS。你有奇怪的引用。 (此外,单细胞表格,内联

样式,以及没有通用替代品的字体系列通常都是

坏主意)。

什么将是细胞的高度?


这将是它需要的最高值。

我相信它会对应于使用的字体...




是的。 (如果你的意思是CSS的高度。否则你必须为填充和边框指定

)。


表格单元格的高度除非另有说明,否则是usu。它内部的高度

内容(..;)即,如果表格包含一行文字,高度

是字体的大小(高度)(例如,如果你指定10px的字体高度,

单元格的高度将是10px ..)如果你把两行文字放在一个字体中

大小为10px高度将是20px,依此类推..

也,如果你在单元格中放入一个img而没有别的高度

cell将是img的高度..(全部这假设你没有在表格标签中指定

表的高度..我相信已被弃用

无论如何..)希望这有帮助..


Frances Del Rio

Rithish写道:

如果我有类似的东西,

< TABLE> ;< TR>< TD STYLE ="''Font-Family:Arial''"> Arial
Text< / TD>< / TR>< / TABLE>
<这个细胞的高度是多少?我相信它会对应于使用的字体......但我怎么知道?这有什么
文件吗?任何帮助将不胜感激..

问候,
Rithish。




If I have something like,

<TABLE><TR><TD STYLE="''Font-Family:Arial''">Arial
Text</TD></TR></TABLE>

What would be the height of the cell? I believe it would be
corresponding to the font used... But how do I know?? Are there any
documents on this? any help would be appreciated..

Regards,
Rithish.

解决方案

ri*****@dacafe.com (Rithish) wrote:

If I have something like,

<TABLE><TR><TD STYLE="''Font-Family:Arial''">Arial
Text</TD></TR></TABLE>
What''s with the extra quotes around your style rule?
What would be the height of the cell? I believe it would be
corresponding to the font used... But how do I know??
In this case the height of the cell would be the height of the line
box containing the words Arial Text (assuming it all fits on one
line). This is normally something roughly around 1.2 * font-size.
The top and bottom padding of the table cell would then go above and
below that before the table cell borders.
Are there any
documents on this? any help would be appreciated..



http://www.w3.org/TR/CSS2/tables.html#height-layout

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don''t like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>


ri*****@dacafe.com (Rithish) wrote in message news:<fd*************************@posting.google.c om>...

<TABLE><TR><TD STYLE="''Font-Family:Arial''">
Invalid CSS. You have weird quoting. (Also, single cell tables, inline
style, and font-family without a generic alternative are all generally
bad ideas).
What would be the height of the cell?
It will be as high as it needs to be.
I believe it would be
corresponding to the font used...



Yes. (If you mean height in CSS terms. Otherwise you have to accound
for the padding and borders).


the height of a table cell, unless specified, is usu. the height of
content inside it (..;) i.e., if table contains one line of text, height
is size (height) of font (for ex., if you specify a font-height of 10px,
height of cell will be 10px..) if you put two lines of text in a font
size of 10px height will be 20px, and so on..
also, if you put in an img inside the cell and nothing else height of
cell will be height of img.. (all this assuming you have not specifed
height of table in table tag.. which I believe has been deprecated
anyway..) hope this helps..

Frances Del Rio
Rithish wrote:

If I have something like,

<TABLE><TR><TD STYLE="''Font-Family:Arial''">Arial
Text</TD></TR></TABLE>

What would be the height of the cell? I believe it would be
corresponding to the font used... But how do I know?? Are there any
documents on this? any help would be appreciated..

Regards,
Rithish.




这篇关于如果未指定,单元格的默认高度是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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