将表转换为CSS以与Javascript一起使用 [英] Converting tables to CSS for use with Javascript

查看:58
本文介绍了将表转换为CSS以与Javascript一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



不确定我应该,但这就是我所拥有的:


3 x 3表格。你点击一个正方形,然后使用Javascript在i

中放置一张图片。


相当简单的东西,每张桌子< td>有一个name属性,所以它可以通过Javascript引用



我的问题,这可以转换为CSS,更重要的是应该

甚至打扰还是我最好把它当作桌子?


感谢您的任何建议


CW

---------------------------------------------- -------------------------

发表于 http://www.forum4designers.co

------------------ -------------------------------------------------- ---

查看此主题: http:// www .forum4designers.com / message37144.htm


Not sure if I should but this is what I have:

3 x 3 table grid. You click on a square and it places a picture in i
using Javascript.

Fairly simple stuff, each table <td> has a name attribute so it can b
referenced by Javascript.

My question, can this be converted to CSS and more importantly should
even bother or would I be better off leaving it as a table?

Thanks for any suggestions

C.W
-----------------------------------------------------------------------
Posted via http://www.forum4designers.co
-----------------------------------------------------------------------
View this thread: http://www.forum4designers.com/message37144.htm

推荐答案

On Sun,2004年1月25日12:33:45 -0600 ,CW< Gu ********** @ mail.forum4designers.com>

写道:
On Sun, 25 Jan 2004 12:33:45 -0600, C.W <Gu**********@mail.forum4designers.com>
wrote:

不确定如果我应该这样做就是我拥有的:

3 x 3表格。你点击一个正方形,然后使用Javascript将图片放入其中



非常简单的东西,每个表< td>有一个名称属性,所以它可以被Javascript引用。

我的问题,这可以转换为CSS,更重要的是我应该打扰或者我会变得更好把它留作桌子?

感谢您的任何建议。

CW -
----------------- -------------------------------------------------- -----
通过 http://www.forum4designers.com 发布
---------------------------------------------- --------------------------
查看此主题: http://www.forum4designers.com/message37144.html




经过多次实验,我得出结论,html表应该*不是*用CSS取代
。浏览器之间的不稳定性和差异太多了。

大多数网站,包括微软和Netscape,使用html表。


你可能想要看看Barry Pearson的分析:

http://www.barry.pearson.name/articles/layout_tables/

Mason C



After much experimentation, I concluded that html tables should *not* be
replaced with CSS. Too much Instability and differences between browsers.
Most web sites, including Microsoft''s and Netscape''s, use html tables.

You may want to look at Barry Pearson''s analysis:

http://www.barry.pearson.name/articles/layout_tables/

Mason C

Mason A. Clark写道:
Mason A. Clark wrote:

经过多次实验,我得出结论,html表应该*不能用CSS取代。


css不是html表的替代品。 html表用于标记

表格数据。 css是一种灵活设计www的方式。

太多不稳定


即使考虑到定位错误 - 也有比较好的

字体和颜色的一些错误 - 它突然跳过桌面布局和

界限。我无法想象没有它的设计。

和浏览器之间的差异。


就我而言,我完全不关心

浏览器之间的差异。除了网络开发人员以外,谁在多个浏览器中检查一个网站?

大多数网站,包括微软和Netscape,都使用html表。


大多数网站都不使用dtd。大多数网站都不会验证他们确实有没有dtd。大多数网站都使用微小字体。大多数网站都受到可用性问题的困扰。我不会模仿大多数网站。

您可能想看看Barry Pearson的分析:

http://www.barry.pearson.name/articles/layout_tables/




我已经读完了。其中大部分都是通过usenet帖子重新编写的。它在网上和在用户网上一样令人难以置信。


-

Brian(按照我的地址中的说明操作)给我发电子邮件)
http://www.tsmchughs.com/



I''ve read it already. Much of it is reworked from usenet postings. It
is as unconvincing on the web as it was in usenet.

--
Brian (follow directions in my address to email me)
http://www.tsmchughs.com/


>就我而言,我完全不关心
>For my part, I am entirely unconcerned with differences between
浏览器之间的区别。


我也是。我一次只浏览一个浏览器。

除了网页开发人员以外,谁在多个浏览器中检查网站?
browsers.
Me too. I only browse with one browser at a time.
Who but web developers ever checks a site in more than one
browser?




浏览网页的人?他们使用了多少浏览器?


Mason C十九,计算版本?



People who browse the web? How many browsers do they use?

Mason C nineteen, counting versions ?


这篇关于将表转换为CSS以与Javascript一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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