1. IFrame not displayed under ie6
Sometimes you will encounter the problem that the iframe does not display under ie6, and it can only be displayed after refreshing. This problem is not caused by slow page loading. There are many possible reasons for this problem:
src attribute is placed at the front of the iframe (never met)
The height is set to 100%, and the actual value of the height cannot be obtained under ie6. Solution: Set to a fixed height value
This phenomenon will also occur when using the a tag to trigger the onclick event to create an iframe dynamically. Solution: add return false to the click function; such as:
2. Multiple loading problems with css sprite under ie6
In the css sprite under ie6 and the css using the background image, the same image will be loaded multiple times, increasing the number of requests, and flashing will occur in the pictures with hover effect. Solution:
<!--[if IE 6]> <script type="text/javascript"> document.execCommand("BackgroundImageCache",false,true); </script> <![endif]-->3. Page jump invalid
When using js' window.location.href=url in ie6 for page redirection, an invalid phenomenon will occur, especially when using onclick to execute the function in the a tag. Solution:
window.location.href=url;return false;