Several ways to crash IE6

  
        I often encounter things that make my IE6 crash. Today I saw a good article, the webpage teaching network was sorted out and sent out, and I should pay attention to it when developing. In view of the fact that the market share of domestic IE6 is still in the mainstream, it is necessary to avoid the following situation. IE6 is really fragile 1. Set scrollbar-base-color, CSS to locate the table, and then change its positioning through JS IE6 collapsed. Key code: <styletype="text/CSS"> Html,body{ scrollbar-base-color:#330066; } .crash{ position:absolute; left:200px; top:200px; width:200px; } < /style> <scripttype="text/Javascript"> functiongalgenfrist(){ window.setTimeout('crashIE();',1000); } functioncrashIE(){ varmoveNode=document.getElementById("move"); if( moveNode){ moveNode.style.top="100px"; moveNode.style.left="200px"; } } </script> <bodyonload="galgenfrist();"> <divid="move"class ="crash"> <table> <tbody> <tr> <td> <textarea></textarea> </td> </tr> </tbody> & Lt; /table & gt; & lt; /div & gt; & lt; /body & gt; with IE6 hit testing. 2.document.write <script>for(xindocument.write){document.write(x);}</script> In FF and Chrome, the "prototype" character is printed and crashes immediately in IE6. Click on the test with IE6. 3. Use the wildcard * in CSS to place the content directly in the Html table tag (instead of the <tr> tag) <style>*{position:relative}</style><table>aaabbbccc< /table> Click IE6 to test. 4. In the CSS, @+ any character +/* immediately crashes <style>@;/*</style> Click IE6 to test. 5.onload="window()" <bodyonload="window()"></body> Click IE6 to test. Note: There are 6 problems in the original that caused the crash. I installed IETester and one of them did not measure it. So I didn't write it up.
Copyright © Windows knowledge All Rights Reserved