IE6 BUG and fix is ​​a preventive strategy

IE6 BUG and fix is ​​a preventive strategy

Original article: Ultimate IE6 Cheatsheet: How To Fix 25+ Internet Explorer 6 Bugs
Translation: http://www.vfresh.org/w3c/727 (The translation supplements the original text)

Before discussing IE6 bugs and how to fix them, it is necessary to talk about some strategies to avoid these annoying problems - as the saying goes, prevention is better than cure.

IE6 Market Share

According to Market Share statistics, currently (August 2009) IE6's market share is 25.25% , but statistics from other places are significantly lower, at 18.1% ; although the statistical results are different, they all show a downward trend (when translating this article, Taobao's IE6 users have dropped from 70% to 69% ). But the most important thing is the statistics of your own website. If you analyze the traffic of your website, is the IE6 penetration rate worth developing for it? This is something you need to weigh for yourself.

If most of your website visitors do not use IE6 and do not pay you, then you do not have to make it compatible with IE6, thus saving time, energy and money.

Make a simple design

Considering the implementation of the code while designing can avoid some layout problems. Even the most complex design can be implemented with concise code. If you use too many tags, you will need to revise the design.
If you have extensive development experience and have overcome many layout problems, record your solutions to improve development efficiency when you encounter the same problem in the future.

Use the appropriate doctype

Using an incorrect document declaration will trigger quirks mode. A correct document declaration can ensure that your page looks consistent in all browsers. Use one of the following document declarations: HTML 5, HTML 4.01 Strict, HTML 4.01 Frameset, HTML 4.01 Transitional, XHTML 1.0 Strict, XHTML 1.0 Frameset, XHTML 1.0 Transitional, or XHTML 1.1

HTML 5

<!DOCTYPE HTML>

HTML 4.01 Strict

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" " http://www.w3.org/TR/html4/strict.dtd ">

HTML 4.01 Frameset

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" " http://www.w3.org/TR/html4/frameset.dtd ">

HTML 4.01 Transitional

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" " http://www.w3.org/TR/html4/loose.dtd ">

XHTML 1.0 Strict

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd ">

XHTML 1.0 Frameset

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd ">

XHTML 1.0 Transitional

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">

XHTML 1.1

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" " http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd ">

Previous Page 1 2 Next Page Read Full Article

<<:  Docker starts in Exited state

>>:  A brief discussion on how to elegantly delete large tables in MySQL

Recommend

Example code for text origami effect using CSS3

Preface This article mainly shares with you an ex...

Research on the effect of page sidebar realized by JS

Table of contents Discover: Application of displa...

Docker Getting Started Installation Tutorial (Beginner Edition)

Doccer Introduction: Docker is a container-relate...

Div css naming standards css class naming rules (in line with SEO standards)

There are many tasks to be done in search engine o...

Implement QR code scanning function through Vue

hint This plug-in can only be accessed under the ...

Vue3+script setup+ts+Vite+Volar project

Table of contents Create a vue + ts project using...

Solution to interface deformation when setting frameset height

Currently I have made a project, the interface is ...

Docker Compose one-click ELK deployment method implementation

Install Filebeat has completely replaced Logstash...

Docker Detailed Illustrations

1. Introduction to Docker 1.1 Virtualization 1.1....

10 Underused or Misunderstood HTML Tags

Here are 10 HTML tags that are underused or misun...

Troubleshooting the reasons why MySQL deleted records do not take effect

A record of an online MySQL transaction problem L...

iframe src assignment problem (server side)

I encountered this problem today. I reassigned the...

Steps to build a file server using Apache under Linux

1. About the file server In a project, if you wan...

Detailed explanation of the basic usage of VUE watch listener

Table of contents 1. The following code is a simp...