浏览器之间的差异HTML [英] HTML differences between browsers

查看:106
本文介绍了浏览器之间的差异HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你知道在不同的浏览器处理的HTML标签/属性的任何区别吗?例如,我曾经看到一个页面,设置为20一个最大长度字段中输入标签。 Firefox和Opera忽略O,而最大长度设置为2,而Internet Explorer中完全忽略了场。你知道了吗?

Do you know of any differences in handling HTML tags/properties in different browsers? For example, I once saw a page with a input tag with a maxlength field set to "2o". Firefox and Opera ignore the "o", and set the max length to 2, while Internet Explorer ignores the field altogether. Do you know of any more?

(注:看见,因为这可能会是一个列表,这将是巨大的,如果差的通用名称是粗体字,如:不同的飘忽不定值处理的变量属性

(Note: seeing as this will probably be a list, it would be great if the general name of the difference was in bold text, like: Different erratic value handling in tag properties)

推荐答案

的Bug列表

Web开发人员已经整理了一些pretty COM prehensive名单;我认为这是更好的编译资源列表不是重复这些名单。

Web developers have already compiled some pretty comprehensive lists; I think it's better to compile a list of resources than to duplicate those lists.

  • http://www.positioniseverything.net/
  • http://www.richinstyle.com/bugs/table.html
  • http://www.quirksmode.org/ (as mentioned by Kristopher Johnson)

的JavaScript

我同意克雷格 - 这是最好的使用处理浏览器之间的差异库,JavaScript程序(以及简化之类的东西命名空间,AJAX事件处理,和上下文)。这里的跳转到克雷格的回答(此页)。

I agree with Craig - it's best to program Javascript using a library that handles differences between browsers (as well as simplify things like namespacing, AJAX event handling, and context). Here's the jump to Craig's answer (on this page).

CSS重置

CSS复位真的可以简化Web开发。它们会覆盖哪些浏览器之间略有不同,给你一个更加共同的出发点设置。我喜欢雅虎的 YUI重置CSS

CSS Resets can really simplify web development. They override settings which vary slightly between browsers to give you a more common starting point. I like Yahoo's YUI Reset CSS.

这篇关于浏览器之间的差异HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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