使用外部CSS控制表属性 [英] Controlling table attribtutes with external CSS

查看:93
本文介绍了使用外部CSS控制表属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我觉得这只是讨论过的,很抱歉,如果这是多余的话。


我想让我的书籍网站XHTML Basic,所以这将是很好的

PDA'。不知道该怎么做,我只是换了DTD',并试图在B3上验证它。它几乎*经过验证。

的主要内容(除了内联样式声明)是我的< table>的属性

。标签。它接受的唯一属性是摘要。


我只是想知道,在我搞乱1500页网站之前

是否或不是在CSS中指定cellpadding,cellspacing,


这是标题(Bookstacks的URL在我的签名中),这是

a表。中间< td>具有width =" 100%",因此它变成了一种自动拉伸单元格的b / b
。保持原样非常重要。


任何建议都将不胜感激。甚至,我想,

关于如何使用< div>'而不是< table>的建议。 :-)


Ian

-
http://www.aspipes.org/
http://www.bookstacks.org/

I get the feeling this was just discussed, so sorry if this is
redundant.

I want to make my books site XHTML Basic, so it will look good on
PDA''s. Not knowing what to do, I simply switched DTD''s, and tried to
validate it at the W3C. It *almost* validated. The main things it
didn''t like (aside from inline style declarations) were the attributes
for my <table> tag. The only attribute it accepted was "summary".

I''m simply wondering, before I go messing around with a 1500 page site
whether or not it''s a good idea to specify cellpadding, cellspacing,
width, and border in CSS. (If, indeed, it''s possible.)

This is for the header (the URL for Bookstacks is in my sig), which is
a table. The middle <td> has width="100%", so that it becomes a kind
of auto-stretch cell. It''s real important to keep that as is.

Any suggestions would be greatly appreciated. Even, I suppose,
suggestions on how to use <div>''s instead of a <table>. :-)

Ian
--
http://www.aspipes.org/
http://www.bookstacks.org/

推荐答案

2003年7月21日星期一00:15:10 +0100 ,David Dorward< do ***** @ yahoo.com>

写道:
On Mon, 21 Jul 2003 00:15:10 +0100, David Dorward <do*****@yahoo.com>
wrote:
将内容放在< div>中,向左设置和它的宽度边缘,并使其向左清晰。
Put the content in a <div>, set left and width margins on it, and make it
clear left.




存档并实际上是供奉的。谢谢,伙计。


Ian

-
http://www.aspipes.org/
http://www.bookstacks.org/


文章< dg ************* *******************@4ax.com> ;,无限猴子之一
$ ib Rastall键盘上的
< id **** ***@earthlink.net>写道:
In article <dg********************************@4ax.com>, one of infinite monkeys
at the keyboard of Ian Rastall <id*******@earthlink.net> wrote:

我想让我的书籍网站XHTML Basic,所以它在PDA上看起来不错。不知道该怎么做,我只是简单地切换了DTD,并试图在W3C验证它。
(印章)
这是标题(Bookstacks的URL在我的签名中),这是


I want to make my books site XHTML Basic, so it will look good on
PDA''s. Not knowing what to do, I simply switched DTD''s, and tried to
validate it at the W3C. (chop) This is for the header (the URL for Bookstacks is in my sig), which is


lynx - dump -head http://www.bookstacks.org/

HTTP / 1.1 200 OK

日期:星期一,2003年7月21日00:00:52 GMT

服务器:Apache / 1.3.27(Unix)FrontPage / 5.0。 2.2634

连接:关闭

内容类型:text / html


就在那里停下来!

text / html用于HTML,和(通过可怕的kludge)XHTML 1.0。

任何其他XHTML都不应该作为text / html提供。

任何建议将不胜感激。甚至,我想,关于如何使用< div>'而不是< table>的建议。 : - )
lynx -dump -head http://www.bookstacks.org/
HTTP/1.1 200 OK
Date: Mon, 21 Jul 2003 00:00:52 GMT
Server: Apache/1.3.27 (Unix) FrontPage/5.0.2.2634
Connection: close
Content-Type: text/html

Stop right there!

text/html is for HTML, and (by a horrible kludge) XHTML 1.0.
Any other XHTML should NOT be served as text/html.
Any suggestions would be greatly appreciated. Even, I suppose,
suggestions on how to use <div>''s instead of a <table>. :-)




如果表是/是布局,那么这是一个很好的举动。但是,不要将b $ b与转移到XHTML联系起来,这是另一回事。并且

不要指望更改DOCTYPE以对PDA产生任何自动化效果。


-

Nick Kew


迫切需要支付工作 - 见 http://www.webthing.com/~nick/cv.html


这篇关于使用外部CSS控制表属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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