2

听起来很奇怪,就这么简单。我不明白为什么,但如果我评论淡入淡出它不会崩溃并且工作得很好。

IE 8 &9 中的结果相同

当我说崩溃时,我的意思是我收到以下消息(Windows 7):

Internet Explorer has stopped working, windows will look for solution

我认为你不想看到整个代码,因为涉及到很多 JS,但相关部分是:

$('#add_image_upload').fadeOut(1000, function(){
 }); // has some commented code inside

html:

    <div id="add_image_upload">
<form action="http://localhost/ci/index.php/do_upload" 
    method="post" accept-charset="utf-8" enctype="multipart/form-data">
    <span id="fileinput_button_label">TEXT</span>
    <input type="file" name="userfile" id="fileupload_input" multiple="">
     </form>
</div>

有谁知道这可能是什么原因?是否与内存大小有关,因为我在此页面中做了很多 jQuery 效果?

4

1 回答 1

0

显然,在输出一些 HTML 时,我忘记在结束标记中添加 /,其他浏览器会自动更正它,所以它可以正常工作,但 IE 不能。

如果发生这种情况,请确保您的 HTML 有效。

于 2012-11-02T13:30:10.647 回答