Few subjects are as widely debated among developers as browser preference. Unfortunately, regardless of your predilection, you most likely build Web sites that require support for both major browsers. Beginners might assume that this would be an effortless task because both Netscape Navigator and Microsoft Internet Explorer support the HTML standard. However, HTML developers quickly learn that standards are great in principle, but often loosely supported. Developers must learn how each browser renders HTML because they handle various tags in subtly different ways. Often, the discrepancies are so small that they aren't noticeable, but that's not always the case. Let's consider two examples: the < TABLE > tag and using the image type within the < INPUT > tag.
展开▼
机译:在开发人员中,很少有像浏览器偏好这样的主题引起广泛争议。不幸的是,无论您的喜好如何,您都极有可能建立需要同时支持两个主要浏览器的网站。初学者可能会认为这是一项轻松的任务,因为Netscape Navigator和Microsoft Internet Explorer均支持HTML标准。但是,HTML开发人员很快就了解到标准原则上很棒,但是经常受到松散的支持。开发人员必须学习每种浏览器如何呈现HTML,因为它们以微妙的不同方式处理各种标签。通常,差异如此之小,以至于它们并不明显,但并非总是如此。让我们考虑两个示例: