代码之家  ›  专栏  ›  技术社区  ›  ehdv

IE7显示异常(示例附后)

  •  -1
  • ehdv  · 技术社区  · 17 年前

    http://janetalasher.com/new/content/portfolio/artcloth/ (这是页面)

    IE做了什么这么奇怪(仅在这种情况下)?如果你在Firefox中查看,你会在右侧看到一个包含缩略图的图像表。IE6和IE7没有显示这一点。.. 除非您处于打印预览状态 。这不是CSS故障-我已经禁用了所有样式表,但错误仍然存在。我会提供更多相关的源代码,但我甚至不知道问题在哪里。我怀疑的.js文件(如果有帮助的话)是:

    /common/gallery/display.js
    /common/gallery/loader.js
    

    4 回复  |  直到 17 年前
        1
  •  2
  •   John Rasch    17 年前

    尝试在此处添加分号:

    function loadGallery(xml)
    {
        thumbpath = $(xml).find("thumbpath").attr('dir') // add here
        imagepath = $(xml).find("imagepath").attr('dir') // here
        detailpath = $(xml).find("detailpath").attr('dir') // and here
        cSheet = contactSheet(xml);
        $('.contactSheet')[0].appendChild(cSheet);    
                display($(cSheet).find('img')[0]);
    }
    

    jQuery.get('/new/content/portfolio/artcloth/gallery.xml' , 'xml' , function(data) { loadGallery(data); } ) // missing one here too
    

    实际上,您的Javascript文件末尾也缺少分号。确保你浏览了每个文件,并在每行末尾添加一个。

    return
    1
    

    可以变成:

    return;
    1;
    

    这根本不会返回任何东西,也不完全是预期的效果。

        2
  •  2
  •   Community Mohan Dere    9 年前

    $('#lower').css('padding-left' , paddingLeft - (lowerRightProtrusion < 0 ? 0 : lowerRightProtrusion) + "px");
    

    由于较低的右突起是NaN;0的计算结果为false,您实际上是将padding left设置为“NaNpx”。不计算;)

    有关MS脚本编辑器的信息,请参阅我之前的答案: Using the IE8 'Developer Tools' to debug earlier IE versions

        3
  •  0
  •   alumb    17 年前

    您当前在文档正文的一个div中包含了您的includes。如果可能的话,试着把这些移到头部。我说的是div id=“pageHead”的直接后代链接和脚本标签。

    (我正在使用IE6和开发人员工具栏来获取此信息)

        4
  •  0
  •   Jason Plank Maksim Kondratyuk    14 年前

    /common/css/generic.css :

    div#information 
    {
    margin-left:188px;
    m\argin-left:94px; <------ not sure if that would cause this, but thought i would point it out 
    }