边界崩溃:崩溃和分离;你能在一张桌子上同时使用它吗? [英] border-collapse:collapse and seperates; Can you have it both ways in one table?

查看:50
本文介绍了边界崩溃:崩溃和分离;你能在一张桌子上同时使用它吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这就是我要做的事情:


创建一个具有泛型样式属性的表[border-collapse:seperate; ]。

在thead中有一些表格单元格需要相互融合,所以

需要这种风格[border-collapse:collapse; ]。


看起来像:


,------------.------ ------。

| |标题|

|其他|一个|两个|

| ============ | ====== | ===== |

|数据数据| 1,25 | aA |

| ------------ | ------ | ----- |

|更多数据| 2,50 | aB |

` ------------''------''' - ''


看看''header''和''one''和''two''或多或少光学融合成

海誓山盟?


我已经设置了一个测试页面

< URL:http://www.pretletters.net/_test/testing_data_tables.REKAM_frequenties.html>

(样式中的页)。在该页面的表格的头部,我想要融入其中的单元格是''电视台'和''kort''和

''volledig''。


如何实现我想要的外观?


-

______PretLetters :

|博客| http://www.pretletters.net/weblog/weblog.html |

| webontwerp | http://www.pretletters.net/html/webontwerp.html |

| zweefvliegen | http://www.pretletters.net/html/vliegen.html |

Here''s what I''m trying to do:

Create a table with generic style property [ border-collapse:seperate; ].
Have a few table cells in the thead that ''have to'' melt into eachother, so
needing the style [ border-collapse:collapse; ].

Looking somthing like:

,------------.------------.
| | header |
| other | one | two |
|============|======|=====|
| data data | 1,25 | aA |
|------------|------|-----|
| more data | 2,50 | aB |
`------------''------''-----''

See how ''header'' and ''one'' and ''two'' more or less optically melt into
eachother?

I''ve setup a test page at
<URL:http://www.pretletters.net/_test/testing_data_tables.REKAM_frequenties.html>
(styles in the page). In the head of the table on that page the cells that
I optically want to melt into one are ''TV-station'' and ''kort'' and
''volledig''.

How can I achieve the look I want?

--
______PretLetters:
| weblog | http://www.pretletters.net/weblog/weblog.html |
| webontwerp | http://www.pretletters.net/html/webontwerp.html |
|zweefvliegen | http://www.pretletters.net/html/vliegen.html |

推荐答案

" Barbara de Zoete" < TR ****** @ pretletters.net>写道:
"Barbara de Zoete" <tr******@pretletters.net> wrote:
看起来像:

,------------.---------- - 。
| |标题|
|其他|一个|两个|
| ============ | ====== | ===== |
|数据数据| 1,25 | aA |
| ------------ | ------ | ----- |
|更多数据| 2,50 | aB |
`------------'' ------''' - ''


真实内容请。

看看''header''和''one''和''two''或多或少光学融合成
对方?

我'已经设置了测试页面
< URL:http://www.pretletters.net/_test/testing_data_tables.REKAM_frequenties.html>
(页面中的样式)。在该页面的表格的头部,我光学上想要融入其中的单元格是''电视台'和''kort''和
''volledig''。
Looking somthing like:

,------------.------------.
| | header |
| other | one | two |
|============|======|=====|
| data data | 1,25 | aA |
|------------|------|-----|
| more data | 2,50 | aB |
`------------''------''-----''
Real content please.
See how ''header'' and ''one'' and ''two'' more or less optically melt into
eachother?

I''ve setup a test page at
<URL:http://www.pretletters.net/_test/testing_data_tables.REKAM_frequenties.html>
(styles in the page). In the head of the table on that page the cells that
I optically want to melt into one are ''TV-station'' and ''kort'' and
''volledig''.




我可能会遗漏一些东西,因为我没有看到问题:
http://homepage.ntlworld.ie/spartanicus/temp.htm


-

Spartanicus



I''m probably missing something as I don''t see the problem:
http://homepage.ntlworld.ie/spartanicus/temp.htm

--
Spartanicus


On Sun,2006年3月5日16:43:41 +0100,Spartanicus< in ***** @ invalid。无效>

写道:
On Sun, 05 Mar 2006 16:43:41 +0100, Spartanicus <in*****@invalid.invalid>
wrote:
" Barbara de Zoete" < TR ****** @ pretletters.net>写道:
"Barbara de Zoete" <tr******@pretletters.net> wrote:
看起来像:

,------------.---------- - 。
| |标题|
|其他|一个|两个|
| ============ | ====== | ===== |
|数据数据| 1,25 | aA |
| ------------ | ------ | ----- |
|更多数据| 2,50 | aB |
`------------''------''-----''
Looking somthing like:

,------------.------------.
| | header |
| other | one | two |
|============|======|=====|
| data data | 1,25 | aA |
|------------|------|-----|
| more data | 2,50 | aB |
`------------''------''-----''



真实内容请。



Real content please.




正如我提供的网址,我不是。



As I provided with the url, didn''t I.

看看''header''和''one''和''two''或多或少光学融合成
对方?

我已经设置了一个测试页面
< URL:http://www.pretletters.net/_test/testing_data_tables.REKAM_frequenties.html>
(页面中的样式)。在该页面的表格中,我想要融入其中的单元格是''电视台'和''kort''和
''volledig' '。
See how ''header'' and ''one'' and ''two'' more or less optically melt into
eachother?

I''ve setup a test page at
<URL:http://www.pretletters.net/_test/testing_data_tables.REKAM_frequenties.html>
(styles in the page). In the head of the table on that page the cells
that
I optically want to melt into one are ''TV-station'' and ''kort'' and
''volledig''.



我可能会遗漏一些东西,因为我没有看到问题:
http://homepage.ntlworld.ie/spartanicus/temp.htm




嗯,我确实看到了问题:包含

''电视台'的单元格的垂直边框没有连接到两个单元格的垂直边框

下一行(在Opera8.5和FF1.5中)。差距是2px。

cellspacing =" 2"可能就是这样,边界崩溃也是如此:单独;

在我的例子中。

-

______PretLetters:

|博客| http://www.pretletters.net/weblog/weblog.html |

| webontwerp | http://www.pretletters.net/html/webontwerp.html |

| zweefvliegen | http://www.pretletters.net/html/vliegen.html |



Well, I do see the problem: the vertical borders of the cell containing
''TV-station'' don''t connect with the vertical borders of the two cells in
the next row (in both Opera8.5 and FF1.5). There''s a 2px gap. The
cellspacing="2" probably does that, as does the border-collapse:separate;
in my example.
--
______PretLetters:
| weblog | http://www.pretletters.net/weblog/weblog.html |
| webontwerp | http://www.pretletters.net/html/webontwerp.html |
|zweefvliegen | http://www.pretletters.net/html/vliegen.html |


" Barbara de Zoete" < TR ****** @ pretletters.net>写道:
"Barbara de Zoete" <tr******@pretletters.net> wrote:
真实内容请。



正如我提供的网址,我不是吗。



As I provided with the url, didn''t I.




而不是消息文本中没有你。



And not in the message text didn''t you.

I我可能会遗漏一些东西,因为我没有看到问题:
http://homepage.ntlworld.ie/spartanicus/temp.htm
I''m probably missing something as I don''t see the problem:
http://homepage.ntlworld.ie/spartanicus/temp.htm



好吧,我确实看到了问题:包含 cellspacing =" 2"可能就是这样,边界崩溃也是如此:单独;
在我的例子中。



Well, I do see the problem: the vertical borders of the cell containing
''TV-station'' don''t connect with the vertical borders of the two cells in
the next row (in both Opera8.5 and FF1.5). There''s a 2px gap. The
cellspacing="2" probably does that, as does the border-collapse:separate;
in my example.




所以你已经回答了自己的问题吗? /> http://homepage.ntlworld.ie/spartanicus/temp.htm (更新)


-

Spartanicus



So you''ve answered your own question right?
http://homepage.ntlworld.ie/spartanicus/temp.htm (updated)

--
Spartanicus


这篇关于边界崩溃:崩溃和分离;你能在一张桌子上同时使用它吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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