html制作表边框不可见 [英] html making table borders invisible
问题描述
我使用主题为夏季时间的Drupal 6。我也用FCKeditor。为了对齐内容,我想创建一个具有不可见边框的表。首先我尝试过FCKEditor表属性,我给了0,以使边框不可见。但它没有奏效。我查找了源代码,非工作代码如下(为什么给border =0不起作用?):
I use Drupal 6 with theme summertime. Also I use FCKeditor. In order to align content I wanted to create a table with invisible borders. First I tried FCKEditor table properties and I gave 0 to border size in order to make borders invisible. But it did not work. I looked up the source and non working code was like below (Why giving border="0" did not work?) :
<table width="468" cellspacing="0" cellpadding="0" border="0" style="width: 468px; height: 201px;">
<tbody>
<tr>
<td>
<h2 class="rtecenter"><a href="http://mydomain.com/url"><strong>Content </strong></a></h2>
</td>
<td><img src="/sites/mydomain.com/files/sample.jpg" alt="" /></td>
</tr>
</tbody>
</table>
然后我试过:
<table width="468" cellspacing="0" cellpadding="0" style="border: medium hidden ; width: 468px; height: 201px;">
表边框现在不可见,但单元格边框仍然可见。我怎么能让它完全看不见谢谢。
Table borders are now invisible but cell borders are still visible. How can I make it totally invisible. Thanks.
推荐答案
应该在单元级别指定border属性,例如< td style = border:0;>
。当然,这应该在CSS中使用:
The border attribute should be specified on the cell level, eg <td style="border: 0;">
. Of course, this should be made in CSS using:
table td { border: 0; }
但是我发现在您的情况下可能会很困难。
But I see that in your case that might be difficult.
这篇关于html制作表边框不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!