表格单元格边框和CSS [英] table cell border and css

查看:72
本文介绍了表格单元格边框和CSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的CSS


表#bartb {

border:1px solid;

width:100%; < br $>
}


表#bartb td {

border:1px solid;

颜色:#ffffff ;

填充:0px;

保证金:0px;

背景:#679999;

text-align:正确;

字体:粗体白xx-小Verdana,Arial,Helvetica,sans-serif;

}


这里是我的HTML


< table id = bartb>

< tr>

< td>空单元格行< / td>

< td> < / td>

< / tr>

< / table>


我发现边框了第二个单元格未打印。我怎么才能打印出来?

谢谢,


qq

解决方案

qu******@yahoo.com 写道:

< td>空单元格行< / td>
< td> < / TD>
我发现第二个单元格的边框没有打印出来。我怎样才能打印出来?



http://w3.org/TR/CSS2/tables.html#propdef-empty-cells


-

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

Home是〜/ .bashrc的地方


qu ****** @ yahoo.com 写道:

这里是我的css


如果您的问题基本上是一个CSS问题,因为您似乎认为自己是b $ b,那么这是一个错误的群体。


您应该发布网址,而不是代码片段。

字体:粗体白xx-small Verdana,Arial,Helvetica,


努力工作为了让大多数人难以辨认文字,不是吗?

< table id = bartb>
< tr>
< td>空单元格行< / td>
< td> < / td>
< / tr>
< / table>


对我来说看起来不像表格结构。

我发现第二个单元格的边框没有打印出来。我怎样才能打印出来?




David给你一个指向CSS解决方案的指针。


这里在HTML组中我可能会提到你可以使用

< td>& nbsp;< / td>而不是< td> < / TD>获得边界。

这是一个丑陋的黑客,但它具有半官方身份。


另一方面,& nbsp;是一个字符(不间断的空格),因此

有一些宽度和高度,所以单元格不能随意变小。

还有其他的解决方法,但为什么你不解释你是什么?b $ b真的想要实现,用一个漂亮的多汁网址说明这个?


-

Yucca, http://www.cs.tut.fi / ~jkorpela /

关于网页创作的网页: http://www.cs.tut.fi/~jkorpela/www.html


你打印出来了一个很长的anser,没有一行对我有用,而且b
其他读者。

如果你的问题基本上是一个CSS问题,你似乎在思考
你自己,那么这是一个错误的群体。


为什么我们不能在这里发布css问题?是不是css和html有关?

另外,我不知道这是一个CSS问题还是一个HTML问题。

你应该发布网址,而不是代码片段。

font:bold white xx-small Verdana,Arial,Helvetica,




我有数百人访问我的网站,没有人抱怨

字体。我试图让我的网站看起来不错。我不想因为0.1%的人看不到字体而牺牲外观。

努力让大多数人难以辨认文字,不是吗? br />

< table id = bartb>
< tr>
< td>空单元格行< / td>
< td> < / td>
< / tr>
< / table>



对我来说看起来不像表格结构。




那么你的表格结构是什么?


我不喜欢你的写作方式。如果你不喜欢帮助的人,为什么你要访问并发布这里的




here is my css

table#bartb {
border : 1px solid;
width : 100%;
}

table#bartb td {
border : 1px solid;
color : #ffffff;
padding : 0px;
margin : 0px;
background : #679999;
text-align : right;
font : bold white xx-small Verdana, Arial, Helvetica, sans-serif;
}

here is my html

<table id=bartb>
<tr>
<td>Empty cell row</td>
<td> </td>
</tr>
</table>

I found that the border of the second cell is not printed. How can I
get it printed?
Thanks,

qq

解决方案

qu******@yahoo.com wrote:

<td>Empty cell row</td>
<td> </td> I found that the border of the second cell is not printed. How can I
get it printed?



http://w3.org/TR/CSS2/tables.html#propdef-empty-cells

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


qu******@yahoo.com wrote:

here is my css
If your problem is essentially a CSS question, as you seem to think
yourself, then this is a wrong group.

You should post the URL, not snippets of code.
font : bold white xx-small Verdana, Arial, Helvetica,
Working hard to make text illegible to most people, are you not?
<table id=bartb>
<tr>
<td>Empty cell row</td>
<td> </td>
</tr>
</table>
Doesn''t look like a tabular structure to me.
I found that the border of the second cell is not printed. How can I
get it printed?



David gave you a pointer to the CSS solution.

Here in the HTML group I might mention that you could use
<td>&nbsp;</td> instead of <td> </td> to get the borders.
This is an ugly hack, but it has a semi-official status.

On the other hand, &nbsp; is a character (the no-break space), which thus
has some width and height, so the cell cannot be made arbitrarily small.
There are other workarounds to this, but why don''t you explain what you are
really trying to achieve, illustrating this with a nice juicy URL?

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


You printed out a long anser, none of the lines is useful to me and
other readers.

If your problem is essentially a CSS question, as you seem to think
yourself, then this is a wrong group.
Why can not we post css question here? Is not css and html related?
Also, I do not know it is a css problem or a html problem yet.
You should post the URL, not snippets of code.

font : bold white xx-small Verdana, Arial, Helvetica,



I have hundreds of people visit my site, no of them complain about the
font. I was trying to make my site looks nice. I do not want to
sacrifice the appearance just because 0.1% people can not see the font.
Working hard to make text illegible to most people, are you not?

<table id=bartb>
<tr>
<td>Empty cell row</td>
<td> </td>
</tr>
</table>



Doesn''t look like a tabular structure to me.



So what''s your tabular structure?

I do not like the way you write. If you do not like help people, why do
you visit and post here?


这篇关于表格单元格边框和CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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