我怎样才能学习所有跨浏览器技术? [英] how can i learn all the cross browser techniques?

查看:112
本文介绍了我怎样才能学习所有跨浏览器技术?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi
如何设计与所有浏览器兼容的网站?

谢谢

zara

hi how can i design a web site compatible with all the browsers?
thanks
zara

推荐答案

我认为你不能考虑到所有的不兼容性,至少在这些日子里,当有两个不相容时。您只能在一定范围内实现两种情况的兼容性。我的想法是:将你的设计限制在那些情况下。但这还不是全部。



另一个重要的一点是:你真的不需要你的网页在不同的浏览器中看起来完全相同。这不仅是不可能的,而且只是一个错误的目标。相反,您需要保持您的网站可识别,愉快,功能齐全,最重要的是,方便和信息丰富,而不是对浏览器差异太敏感。而你的主要工具应该是清晰,简洁和专注于网站的内容,而不是装饰。请参阅我过去的回答:

一个CSS兼容所有浏览器 [ ^ ]。



现在,关于兼容性的一些实用想法:

< a href =http://en.wikipedia.org/wiki/JQuery> http://en.wikipedia.org/wiki/JQuery [ ^ ],

http: //jquery.com/ [ ^ ],

http://learn.jquery.com/about-jquery/how-jquery-works/ [ ^ ]。



您可以使用jQuery(或其他一些图书馆建立兼容兼容性:

http://en.wikipedia.org/wiki/ JQuery [ ^ ],

http://jquery.com/ [ ^ ]。



您可能还需要这种严格的兼容性措施:所有浏览器都将#参数传递给脚本,除了IE 6. [ ^ ]。



祝你好运,

-SA
I don''t think you can ever take into account all the incompatibility, at least, not these days, when there are two many of them. You can achieve compatibility only to some set of cases, only two certain extent. My idea is: limit your design to those cases. But this is not all.

Another important point is: you don''t really need your pages to look 100% identical in different browsers. Not only this is not possible, it''s just a wrong goal. Rather, you need to keep your sites recognizable, pleasant, fully-functional and, most importantly, convenient and informative in a way, not too sensitive to browser differences. And you main tools should be clarity, simplicity and the focus on site''s content, not "decoration". Please see my past answer:
One CSS compatible to all browser[^].

Now, a couple of practical ideas on compatibility:
http://en.wikipedia.org/wiki/JQuery[^],
http://jquery.com/[^],
http://learn.jquery.com/about-jquery/how-jquery-works/[^].

You can use jQuery (or some other library) build with compatibility in mind:
http://en.wikipedia.org/wiki/JQuery[^],
http://jquery.com/[^].

You may also need this drastic compatibility measure: all browsers pass the # parameter to the script except for IE 6.[^].

Good luck,
—SA


这篇关于我怎样才能学习所有跨浏览器技术?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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