间距表行 [英] Spacing table rows
问题描述
我正在尝试创建一个布局表,行之间的间距会有所不同。
我尝试过设置margin-top和border-top来表示我想要的行从上面的那个开始间隔
,我也尝试将它设置在
那一排的所有单元格上。
这个没用,所以我想知道是否有人知道怎么做。
谢谢,Rick DeBay
Rick DeBay写道:我正在尝试创建一个布局表,行之间的间距各不相同。
我我已经尝试使用margin-top和border-top来设置我不会与上面的行隔开的行,并且我也试过在
那一排。
简单示例:
< http://annevankesteren.nl/test/examples/tweakers/post-855071.htm>
来自其他人的简单黑客示例,应该可以在IE中使用:
< http://www.xs4all.nl/~peterned/examples/borderspace.html>。缺点
是需要HTML属性。
谢谢,Rick DeBay
-
Anne van Kesteren
< http://www.annevankesteren.nl/>
文章< bu **** ****** @reader10.wxs.nl>,Anne van Kesteren说......
Rick DeBay写道:我正在尝试创建一个布局表,行之间的间距会有所不同。
我已经尝试使用margin-top和border-top设置我想要的行,而不是从上面的行,我也尝试在那一行的所有细胞上设置它。
简单的例子:
< http://annevankesteren.nl /test/examples/tweakers/post-855071.htm>
来自其他人的简单黑客示例,应该可以在IE中使用:
< http://www.xs4all.nl/ 〜peterned /示例/ borderspace.html取代。缺点
是需要HTML属性。
谢谢,Rick DeBay
-
Anne van Kesteren
< http://www.annevankesteren.nl/>
实际上,我想改变行之间的间距。所以我把你的例子和
直接添加到要测试的元素中。更改行没有做任何事情,也没有为单元格添加样式。
来自后855071.htm的修改片段:
< tr style =" border-spacing:0 50px;">
< td class =" l" style =" border-spacing:0 50px;"> Artikel 2< / td>
< td class =" r" style =" border-spacing:0 50px;">< a href =""> view< / a> < a
href =""> retract< / a> < a href ="">存档< / a>< / td>
< / tr>
Rick DeBay
Rick DeBay写道:我正在尝试创建一个布局表,
而是使用正确的html。并在css中进行布局。
http:/ /www.allmyfaqs.com/faq.pl?Tableless_layouts
-
Brian(按照我的地址中的说明给我发电子邮件)
http://www.tsmchughs.com/
I''m trying to create a layout table, where the spacing between rows varies.
I''ve tried using setting margin-top and border-top for the rows I wan''t spaced
down from the one above, and I''ve also tried setting it on all of the cells of
that row.
This hasn''t worked, so I was wondering if anyone knew how it could be done.
Thanks, Rick DeBay
Rick DeBay wrote:I''m trying to create a layout table, where the spacing between rows varies.
I''ve tried using setting margin-top and border-top for the rows I wan''t spaced
down from the one above, and I''ve also tried setting it on all of the cells of
that row.
Simple example:
<http://annevankesteren.nl/test/examples/tweakers/post-855071.htm>
Simple hacked example from somebody else, which should work in IE:
<http://www.xs4all.nl/~peterned/examples/borderspace.html>. Disadvantage
is that a HTML attribute was needed.
Thanks, Rick DeBay
--
Anne van Kesteren
<http://www.annevankesteren.nl/>
In article <bu**********@reader10.wxs.nl>, Anne van Kesteren says...
Rick DeBay wrote:I''m trying to create a layout table, where the spacing between rows varies.
I''ve tried using setting margin-top and border-top for the rows I wan''t spaced
down from the one above, and I''ve also tried setting it on all of the cells of
that row.
Simple example:
<http://annevankesteren.nl/test/examples/tweakers/post-855071.htm>
Simple hacked example from somebody else, which should work in IE:
<http://www.xs4all.nl/~peterned/examples/borderspace.html>. Disadvantage
is that a HTML attribute was needed.Thanks, Rick DeBay
--
Anne van Kesteren
<http://www.annevankesteren.nl/>
Actually, I''d like to vary the spacing between rows. So I took your example and
added styles directly to the elements to test. Changing the row didn''t do
anything, nor did adding the style to the cells.
Modified snippet from post-855071.htm:
<tr style="border-spacing:0 50px;">
<td class="l" style="border-spacing:0 50px;">Artikel 2</td>
<td class="r" style="border-spacing:0 50px;"><a href="">view</a> <a
href="">retract</a> <a href="">archive</a></td>
</tr>
Rick DeBay
Rick DeBay wrote:I''m trying to create a layout table,
Instead, use proper html. And do the layout in css.
http://www.allmyfaqs.com/faq.pl?Tableless_layouts
--
Brian (follow directions in my address to email me)
http://www.tsmchughs.com/
这篇关于间距表行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!