浏览器不一致:什么是最有效的开发机制? [英] Browser inconsistencies: what is the most efficient development regime?

查看:57
本文介绍了浏览器不一致:什么是最有效的开发机制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎花了太多时间在浏览器上挣扎

关于Javascript的不一致(更不用说CSS)。


你怎么看?是最有效的开发机制,包括两台PC和Mac?特别是,我想到两个问题:


1我应该在哪个浏览器中开发以确保最大数量的
代码是正确的,以便它将使用最大数量的浏览器。


2我应该在哪些浏览器中测试代码以确保它适用于几乎所有用户的
?我想这是一个很短的三个b
的清单,但我希望它不超过五个。


我''在一个非常令人沮丧的一周之后被驱使去问这些问题

建立一个客户可以设计的多层导航栏和

build。该结构保存在SQL数据库中,当页面加载时,该数据库被转移到

Javascript数组中。我在IE

和NN之间遇到了很多问题,特别是在NN7和NN8之间。我开始认为NN7

是垃圾。


如果我上面回答,我想我会说NN8到Q1和NN8(在PC和

Mac),IE和Safari到Q2。


我对你的观点最感兴趣。


发布通过Usenet.com高级Usenet新闻组服务

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

** SPEED ** RETENTION **完成**匿名**

------------------------------------ ----------------------
http://www.usenet.com

I seem to spend far too much of my time struggling with browser
inconsistencies concerning Javascript (not to mention CSS).

What do you think is the most efficient development regime, including both
PC and Mac? In particular, two questions come to mind:

1 In which browser should I develop to ensure that the maximum amount of
code is correct, so that it would work the maximum number of browsers.

2 In which browsers should I test the code to ensure that it will work for
practically all users? I''d like to think that this is a short list of three
but I hope it''s not more than five.

I''ve been driven to ask these questions after a very frustrating week
building a multi-level navigation bar which the customer can design and
build. The structure is held in an SQL database which is transferred into
Javascript arrays when the page loads. I''ve had lots of problems between IE
and NN and particularly between NN7 and NN8. I''m beginning to think that NN7
is rubbish.

If I were to answer above, I think I would say NN8 to Q1 and NN8 (on PC and
Mac), IE and Safari to Q2.

I''d be most interested in your views.


Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

推荐答案

" Roger Withnell" < RO ********* @ THISupperbridge.co.uk>写道:
"Roger Withnell" <ro*********@THISupperbridge.co.uk> writes:
1我应该在哪个浏览器中开发以确保最大数量的代码是正确的,以便它可以使用最大数量的浏览器。


在整个开发过程中使用多个浏览器。它出现时更容易解决问题,而不是代码层已经在它们之上添加了


2我应该在哪些浏览器中测试代码以确保它几乎适用于所有用户?我想这是一个简短的三个清单,但我希望它不超过五个。


我准备给出一个列表,但是真的,支持特定的浏览器
除了IE 6之外的
比支持浏览器

Javascript已关闭。没有使用任何单一的非IE6浏览器,有更多的人浏览没有
Javascript。那是你需要首先支持的



然后你可以尝试修复
$ b之间相对较小的差异之后带有javascript的$ b浏览器。使用符合标准的HTML

和DOM代码将使大多数事情变得简单。

如果我在上面回答,我想我会说NN8到Q1和NN8(在PC和
Mac),IE和Safari到Q2。
1 In which browser should I develop to ensure that the maximum amount of
code is correct, so that it would work the maximum number of browsers.
Use more than one browser all the way through the development. It''s much
easier to fix problems when they appear, than when layers of code has
been added on top of them.
2 In which browsers should I test the code to ensure that it will work for
practically all users? I''d like to think that this is a short list of three
but I hope it''s not more than five.
I was about to give a list, but really, supporting specific browsers
apart from IE 6 is less of a problem than supporting browsers with
Javascript turned off. There are more people browsing without
Javascript than there are using any single non-IE6 browser. That''s
what you have to support first.

Then you can try to fix the, relatively minor, differences between
browsers with javascript afterwards. Using standard compliant HTML
and DOM code will make most things easy.
If I were to answer above, I think I would say NN8 to Q1 and NN8 (on PC and
Mac), IE and Safari to Q2.




别忘了Opera(不只是因为它是我用的东西:) />

/ L

-

Lasse Reichstein Nielsen - lr *@hotpop.com

DHTML死亡颜色:< URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>

' 没有判断的信仰只会降低神灵的精神。



Don''t forget Opera (not just because it''s what I use :)

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
''Faith without judgement merely degrades the spirit divine.''


你一定会做出决定:你会支持第3代

浏览器和第4代?

如果你这样做,你将不得不在Netscape4和3,Netscape 5 +,IE4,

IE5 +,Firefox,Opera 4上进行测试,Opera 7+,没有出路。


这也取决于您支持旧版浏览器的含义。我确实

不支持第5代以下的任何东西。下面是什么,如果一个

关闭css,可以看到整页只是文字。


不启用javascript浏览的用户不存在。它们像龙和独角兽一样,可能相信的幻想生物。

存在搜索引擎机器人。如果一个蓝色鲱鱼像一个没有JS的用户浏览
存在,你可以安全地失去它:他/她可能

从未意识到他/她无法进行任何正确的交易在线

或使用电子邮件基于网络的东西,如hotmail或gmail,这样就不会对你的页面做任何有意义的用户类型。


我的建议是:使用Firefox开发1.x ALSO检查IE6。你

只是无法单独在一个浏览器上进行测试,抱歉。


如果你的脚本同时工作,你可能会在任何地方工作

很长,因为它是第5代浏览器,接近100%的几个

分数。


请关于W3C的故事合规性,请看:
http://www.unitedscripters .com / spell ... texplorer.html

滚动到该文件的HALF方式,你不必阅读它。只需

找到页面中间有200多个站点的列表

从谷歌到英特尔,从雅虎到罗技,从亚马逊到

McGrowHill,从alpha到omega,没有通过W3C测试

每个数百个错误。


这是真正重要的地方完全符合W3C

指南的保留。


如果你赞助这个位置,他们会活着你的生活

vulgata认为W3C合规性是至关重要的,但那些链接PROVE

我们今天在网上几乎所有这些链接都不符合W3C标准,而且这些都是所有网站每天由百万用户浏览

,包括所有可能的平台,版本,浏览器,操作

系统和随身用品:无验证,ALL都已成功使用。

NONE验证最少。

You''re bound to make a decision: would you support generation 3
browsers, and generation 4?
If you do, you''ll have to test on Netscape4 and 3, Netscape 5+, IE4,
IE5+, Firefox, Opera 4, Opera 7+, no way out.

It also depends on what you mean by supporting older browsers. I do
not support anything below generation 5. What is below that, if one
turns css off, can see the full page as just text.

Users that browse without javascript enabled do not exist. They are
like dragons and unicorns, fantasy creatures one may believe in.
There exist Search Engine Bots that do. If a blue herring like a user
browsing without JS exists, you can lose that safely: he/she probably
never realized he/she was unable to make any proper transaction online
or use email web based stuff like hotmail or gmail, so that''s just not
the type of user that would do anything meaningful with your page.

My suggestion is: develop using Firefox 1.x The ALSO check on IE6. You
just cannot work testing on one browser alone, sorry.

If your scripts work on BOTH, your chances that they work everywhere as
long as it is a generation 5 browser, are near to 100% by a few
fractions.

Please as for the story about W3C compliance, have a look at:
http://www.unitedscripters.com/spell...texplorer.html
scroll till HALF way of that file, you do NOT have to read it. Just
locate the middle of the page where there is a list of over 200 sites
from Google to Intel, from Yahoo to Logitech, from Amazon to
McGrowHill, from alpha to omega, that do NOT pass the W3C test by
several hundreds of errors each.

That is where the true importance of full compliance with W3C
guidelines stays.

They''ll eat you alive if you sponsor this position around for the
vulgata goes that W3C compliance is paramount, but those links PROVE
that nearly ALL that we have online today is NOT W3C compliant in the
LEAST and yet those are all sites browsed by MILLIONS of users everyday
each, with ALL the possible platforms, versions, browsers, operative
systems and paraphernalia: none validates, ALL are succesfully used.
NONE validates in the LEAST.


>我的建议是:使用Firefox开发1.x ALSO检查IE6。你
> My suggestion is: develop using Firefox 1.x The ALSO check on IE6. You
只是不能单独在一个浏览器上进行测试,抱歉。
just cannot work testing on one browser alone, sorry.




我这样做。但是我也经常检查它,有时只有在我完成一个项目时才在Opera中完成。如果它在Mozilla中运行,那么Opera

通常看起来相当开心。有时我会调整一些CSS和一些

或标记,因为美观的原因让Opera保持高兴,不然它很好。


Javascript是一个明显的例外。我在JS上写的一本很性感的书说只有

FireFox已经实现了对DOM 3级的支持.IE和Opera实现了1级但是没有更多,如果你想要的话安全的JS代码

我会坚持DOM级别1的功能.DOM级别2有注意迭代器

和treewalking方法和所有听起来很酷的东西但是你

不应该使用,3级对于任何人来说都太新了。作为ECMAScript(JS的核心语言)的

我认为所有的浏览器都是相当统一的。


有足够的Fox1和IE6之间的不一致给了我足够的

头疼,所以我不认为支持太多了。 IE6使用了
90%以上,所以要优先考虑,但我喜欢尊重那些带有

的浏览器,通过在Mozilla和Opera中测试更好的浏览器品味。


如果你想支持少数民族,那么就支持视力不佳,盲目和肢体障碍的盲人。以下是这样的:
http://diveintoaccessibility.org/table_of_contents.html


我和btw我的名字是来自英国的Ollie我现在应该在这个

新闻组。我刚刚开始自己​​的网站

设计/开发业务。我正在向所有集团常客大喊大叫!


Ollie



I do that. But I also check it every now and then, sometimes only when
I''ve finished a project, in Opera. If it works in Mozilla then Opera
usually seems fairly happy. Occasionally I have adjust some CSSand a bit
or markup for cosmetic reasons to keep Opera happy but otherwise its fine.

Javascript is a notible exception. My big sexy book on JS says that only
FireFox has implemented support for DOM level 3. IE and Opera have
implementation of level 1 but not much more so if you want safe JS code
i''d stick to the features of DOM level 1. DOM level 2 has note iterators
and treewalking methods and stuff which all sounds very cool but you
shouldn''t use yet and level 3 is too new for anyone to care about. As
for ECMAScript (the core languague of JS) I think all browsers are
fairly unified there.

There are enough inconsistancies between Fox1 and IE6 to give me enough
headaches so I don''t see the point supporting too many more. IE6 is used
by 90%+ so make that the priority but I like to respect those with
better browser tastes like myself by testing in Mozilla and opera.

If you want to support minorities then support the partially sighted,
colorblind, blind and physically impaired. Here''s how:
http://diveintoaccessibility.org/table_of_contents.html

I and btw my name is Ollie from the UK I should be around on this
newsgroup a fair bit now. I''ve just started my own web
design/development business. I''m shouting out to all you group regulars!

Ollie


这篇关于浏览器不一致:什么是最有效的开发机制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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