【问题标题】:colorbox ie8 windows xp loading issuecolorbox ie8 windows xp 加载问题
【发布时间】:2013-04-24 00:23:41
【问题描述】:
<div class="topDivContent">
    <div class="content">
        Sample content Sample content Sample content Sample content
    </div>
</div>
<script type="text/javascript">
    $(function(){
        var displaydiv = '.' + "topDivContent";

        $.colorbox({
            inline : true,
            href : displaydiv,
            innerHeight : 150,
            innerWidth : 650,
            scrolling : false
        });

    });
</script>

我有一个使用 colorbox 插件加载内容的典型问题,在页面加载时,我试图加载如上所示的内容。

它在 Windows XP + IE8 中的所有环境中都能正常工作,它一直显示加载符号。你能帮我解决我的遗漏吗

【问题讨论】:

    标签: windows internet-explorer-8 windows-xp colorbox


    【解决方案1】:

    我只对 IE-8 有类似的格式问题,对我来说有效的是使用正确的HTML doctype

    使用&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; 看看是否修复。

    【讨论】:

    • 现在我有 html doctype 如下 ,相同的代码在 IE8 + Windows 7 上运行。
    • 非常感谢您的快速回复
    • 如果您查看他们的网站常见问题解答,上面说 DOCTYPE 是它在 IE8 上正常工作的要求。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-06-03
    • 2011-09-15
    • 1970-01-01
    • 1970-01-01
    • 2011-03-20
    • 1970-01-01
    相关资源
    最近更新 更多