未加载图像,IE6到IE9



我有两个问题:

  1. 我的网站没有从IE6-IE9上的index.html转发
  2. 图像未加载到任何页面IE6-IE9

对于第一个问题,如果http://www.matthallock.com/网站无休止地循环而不管我是将其链接到文件(例如。,http://www.matthallock.com/hamlet.html)

第二个更麻烦的问题是Internet Explorer上的图像显示为空白。此外,问题似乎出在jQuery上,因为固定的侧边栏也不起作用。

我尝试了针对懒惰负载的降级,但这并不能解决问题。奇怪的是,如果你去我的博客blog.matthallock.com,没有问题,侧边栏的样式看起来是正确的。

外观和功能在Chrome、Safari和Firefox中正常工作。

非常感谢您的帮助。

<META HTTP-EQUIV="refresh" CONTENT="0;http://www.matthallock.com/hamlet.html">

在实际提供URL之前,您需要指定url=,否则它只会重新加载当前页面。

$("img").lazyload({
    effect : "fadeIn",
    /*
      appear : function(elements_left, settings) {
        console.log("appear");
        console.log(elements_left);
        //console.log(this, elements_left, settings);
      },
      load : function(elements_left, settings) {
        console.log("load");
        console.log(elements_left);
        //console.log(this, elements_left, settings);
      }
    */
});

您的浏览器控制台免费为您提供了以下内容:"预期的标识符、字符串或数字"-IE不喜欢在对象定义中使用尾随逗号,由于您的多行注释,您得到的代码是:

$("img").lazyload({effect:"fadeIn",});

看到那个多余的逗号了吗?移除它,一切都会神奇地工作。

最新更新