tr周围的边界 [英] border around tr

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

问题描述

我有一张桌子。


桌子上没有任何边框。

TR(每一行)必须有边框,但是不是单元格之间的界限。

TR.pages必须没有边框。


so .mytable {border:0px;}


..mytable tr {border:1px solid#000000;}

..mytable th {border:0px;}

..mytable tr。页面{border:0px;}


不起作用,不能有tr的边框。这张桌子没有边框

all。


这可行吗?


bob
< br>

解决方案

Bob Bedford写道:

我有一张桌子。
表格不能有任何边框。
TR(每一行)必须有边框,但不能有单元格之间的线条。
TR.pages必须没有边框。

so .mytable {border:0px;}
.mytable tr {border:1px solid#000000;}
.mytable th {border:0px;}
.mytable tr.pages {border:0px;}

不起作用,不能有tr的边框。桌子根本没有边框

这可能有用吗?

bob



td {

border-top:1px纯黑色;

border-bottom:1px纯黑色;

}


> td {

border-top:1px纯黑色;
border-bottom:1px纯黑色;
}



______________________________

cell1 cell2 cell3 .... cellX

______________________________


左右怎么样???? cell1没有左行,也没有cellX,

没有右行。


> td {

border-top:1px纯黑色;
border-bottom:1px纯黑色;
}




或者也许可以在整个桌子周围划一条线,但最后一条线周围没有线条b / b $ b(这就是我要做的事情)

我的所有桌子都在页面中心,但我不想要在桌子外面的最后一个单元格的内容(因为结果很糟糕)。我想删除最后一行边界的



I''ve a table.

The table must not have any border.
The TR (every line) must have a border, but not the lines between cells.
The TR.pages must have no border.

so .mytable{border:0px;}

..mytable tr{border:1px solid #000000;}
..mytable th{border:0px;}
..mytable tr.pages {border:0px;}

doesn''t work, can''t have the border around tr. The table has no border at
all.

may this work ?

bob

解决方案

Bob Bedford wrote:

I''ve a table.

The table must not have any border.
The TR (every line) must have a border, but not the lines between cells.
The TR.pages must have no border.

so .mytable{border:0px;}

.mytable tr{border:1px solid #000000;}
.mytable th{border:0px;}
.mytable tr.pages {border:0px;}

doesn''t work, can''t have the border around tr. The table has no border
at all.

may this work ?

bob


td {
border-top: 1px solid black;
border-bottom: 1px solid black;
}


> td {

border-top: 1px solid black;
border-bottom: 1px solid black;
}


______________________________
cell1 cell2 cell3 .... cellX
______________________________

And what about left and right ???? cell1 has no left line, and cellX either,
no right line.


> td {

border-top: 1px solid black;
border-bottom: 1px solid black;
}



or maybe it''s possible to draw a line around an entire table, but no line
around the last one (it''s what I''m trying to do)
I''ve all my table centered in the page, but I don''t want the content of the
last cell outside the table (as the result is awfull). I''d like to remove
the border around the last line.


这篇关于tr周围的边界的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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