Crash your IE

Source: Internet
Author: User
ArticleDirectory
    • 1 crash IE6 code
    • 2 crash IE6 code
    • 3 crash IE7 code
    • 4 crash IE6 code
    • 5 crash IE6 code
    • 6 crash IE6 code
    • 7 crash IE6 code
    • 8 crash IE6 code

Strictly speaking, CSS not only makes ie browsers crash (crash), but also works with the corresponding XHTML architecture. So far, we have found that there are two normal writing methods and one wrong structure, which lead to IE6 and IE7 crash (crash). I tried to find the answer for the reason, but I still haven't found one... If you have such knowledge or more detailed information, I hope you can share it with us!

1 crash IE6 code

Demo:Http://blog.gulu77.com/demo/200808/crash_ie6.html

This bug only exists in IE6. This problem occurs when the pseudo class is a: active.

Below isCodeFragment:
A {position: relative ;}
A: hover {float: Left ;}

Solution:Add ZOOM: 1 for <A> to trigger haslayout

The following is a code snippet:
A {position: relative; ZOOM: 1 ;}
A: hover {float: Left ;}
2 crash IE6 code

This is caused by incorrect HTML structure, leading to IE6 crash. Adding any character before or after <Col width = "100"/> causes IE6 crash

Demo:Http://blog.gulu77.com/demo/200808/HTML_errors_crash_ie6.html

The following is a code snippet:
<Table>
<Colgroup>
<Col width = "100"/> crash IE6
</Colgroup>
</Table>
3 crash IE7 code

Demo:Http://blog.gulu77.com/demo/200808/crash_ie7.html

Bug fromStealing riceThis bug only causes IE7 to crash when it is estimated that the word is omitted in IE7.

The following is a code snippet:
<Style type = "text/CSS">
Div {float: Left; width: 175px ;}
Ul {overflow: hidden; white-space: nowrap; text-overflow: ellipsis ;}
Li {position: relative ;}
</Style>

<Div>
<Ul>
<Li> crash IE7 </LI>
<Li> crash IE7 </LI>
</Ul>
</Div>

Solution:Is

  • Add ZOOM: 1; To trigger haslayout

     

    The following is a code snippet:
    <Style type = "text/CSS">
    Div {float: Left; width: 175px ;}
    Ul {overflow: hidden; white-space: nowrap; text-overflow: ellipsis ;}
    Li {position: relative; ZOOM: 1 ;}
    </Style>
    4 crash IE6 code

    Demo:Http://blog.gulu77.com/demo/200808/crash_ie6_test1.html

    When the location is changed again, the browser crashes, but it seems that it also requires n accomplices to cause the CSS table attribute to be indispensable in the crashed code.

    The following is a code snippet:
    <! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <HTML xmlns = "http://www.w3.org/1999/xhtml">
    <Head>
    <Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/>
    <Title> CRASH-IE, CSS makes your IE browser crash </title>
    <Style type = "text/CSS">
    HTML, body {overflow: hidden; scrollbar-base-color: #330066 ;}
    . Crash {position: absolute; left: 200px; top: 200px; width: 200px ;}
    </Style>
    <SCRIPT type = "text/JavaScript">
    Function galgenfrist (){
    Window. setTimeout ('crashie (); ', 1000 );
    }

    Function crashie (){
    VaR movenode = Document. getelementbyid ("move ");
    If (movenode ){
    Movenode. style. Top = "100px ";
    Movenode. style. Left = "200px ";
    }
    }
    </SCRIPT>
    </Head>

    <Body onload = "galgenfrist ();">
    <H1> CRASH-IE <Div id = "move" class = "crash">
    <Table>
    <Tbody>
    <Tr>
    <TD>
    <Textarea> </textarea>
    </TD>
    </Tr>
    </Tbody>
    </Table>
    </Div>
    </Body>
    </Html>

    5 crash IE6 code

    Demo:Http://blog.gulu77.com/demo/200808/crash_ie6_test2.html

    The specific cause cannot be resolved for the moment, but this is generally not used in terms of compatibility and execution efficiency.

    The following is a code snippet:
    <SCRIPT>
    For (X in document. Write ){
    Document. Write (x );}
    </SCRIPT>
    6 crash IE6 code

    Demo:Http://blog.gulu77.com/demo/200808/crash_ie6_test3.html

    It is said that a Japanese person discovered that the content in the table is directly placed. IE6 will cause damage to the mshtml. All module and close the browser. Non-IE6 is safe.

    The following is a code snippet:
    <Style>
    * {Position: relative}
    </Style>
    <Table>
    <Input>
    </Table>
    7 crash IE6 code

    Demo:Http://blog.gulu77.com/demo/200808/crash_ie6_test4.html

    The following is a code snippet:
    <Body onload = "window ()">
    8 crash IE6 code

    Demo:Http://blog.gulu77.com/demo/200808/crash_ie6_test5.html

    The @ + arbitrary character +/* In css crashes immediately.

    The following is a code snippet:
    <Style>
    @;/*
    </Style>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.