HTML / CSS中的cellpadding定义? [英] cellpadding definition in HTML/CSS ?

查看:60
本文介绍了HTML / CSS中的cellpadding定义?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于表格单元格,我想在单元格边框和文本内部之间填充3像素。

如何在< TD>中指定此属性? RESP。 css?


Mark

For a table cell I want to have a padding of 3 pixel between the cell border and the text inside.
How do I specify this attribute in a <TD> resp. css ?

Mark

推荐答案

Mark Richards写道:
Mark Richards wrote:
对于表格单元格,我希望在单元格边框和文本内部之间有一个3像素的填充。
如何在< TD>中指定此属性? RESP。 css?
For a table cell I want to have a padding of 3 pixel between the cell border and the text inside.
How do I specify this attribute in a <TD> resp. css ?




td {

填充:3px;

}


对于cellspacing:

< http://annevankesteren.nl/test/examples/tweakers/post-855071.htm> (只是

当然是一个例子)。


-

Anne van Kesteren

< ; http://www.annevankesteren.nl/>



td{
padding:3px;
}

For cellspacing:
<http://annevankesteren.nl/test/examples/tweakers/post-855071.htm> (just
an example of course).

--
Anne van Kesteren
<http://www.annevankesteren.nl/>


Mark Richards写道:
Mark Richards wrote:
对于我想要的表格单元格在单元格
边框和文本内部之间有一个3像素的填充。如何在< TD>
中指定此属性。 css?
For a table cell I want to have a padding of 3 pixel between the cell
border and the text inside. How do I specify this attribute in a <TD>
resp. css ?




通常的方式:


td {

填充:3px;

}


-

Jim Dabell



The usual way:

td {
padding: 3px;
}

--
Jim Dabell


Mark Richards写道:
Mark Richards wrote:
对于表格单元格,我希望在单元格
边框和文本内部之间有一个3像素的填充。如何在< TD>
中指定此属性。 css?
For a table cell I want to have a padding of 3 pixel between the cell
border and the text inside. How do I specify this attribute in a <TD>
resp. css ?




td {padding:3px; }


-

David Dorward< http://dorward.me.uk/>



td { padding: 3px; }

--
David Dorward <http://dorward.me.uk/>

这篇关于HTML / CSS中的cellpadding定义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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