html - 如何修复 IE 10 中不匹配的结束标记错误

标签 html css internet-explorer iframe banner

网页包含 24 个 iframe,它们使用 iframe 内容中的元刷新定期刷新:

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="refresh" content="25">
    <base target="_parent" />
    <link href="/store/Content/Css/Site.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <a class="picture ui-corner-all" 
        href="/store/Store/Details?product=FRUNBLUEJASS">
        <img src="/store/Store/MainImageThumb?product=FRUNBLUEJASS" />
    </a>
</body>
</html>

在 Internet Explorer 10 中按 F5 刷新页面后,错误

HTML1509: Unmatched end tag. 
store, line 470 character 5

出现在 IE 开发者工具控制台选项卡中,页面中的底部组文本出现在单列中。 在 Chrome 页面中正确呈现,没有错误。我验证了页面中的所有标签都匹配。 如何解决这个问题?

使用了jquery、jquery iu、mono/ASP.NET MVC3。

最佳答案

这对我来说似乎不是浏览器问题。 查看您链接的网站的已清理源代码。您最终会得到一个没有匹配开始标记的结束标记。

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <base href='/store/' />
    *snip*
    <title>Pood</title>
</head>
<body>
    *snip*
        <div id="main">
            *snip*
            <div class='maincontent'>
                *snip*
                <div class='highlightcolor'>
                    *snip*
                </div>  

                <p class='clear_both'>
                    <div class="bottomcategories">
                        *snip*
                    </div>
                </p>
            </div>
            <div style="clear: left">
                *snip*
            </div>
        </div>

        <div id="footer">
            *snip*
            <div style="text-align: center">
            </div>
        </div>
    ** here **
    </div>
    ** here **
</body>
</html>

无论如何,当我在单个页面上看到 24 个自动刷新 iframe 时,我不得不问这是否真的是最好/最新的解决方案。 ;-)

关于html - 如何修复 IE 10 中不匹配的结束标记错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16807595/

相关文章:

ruby - 如何读取值并将其作为参数传递给 watir 中的下一步

css - 3D 变换不适用于 ie

javascript - jQuery 如何将数据放入 HTML (.data)

html - 如何在 IE8 中的列表标记外显示左边框?

css - 将 <pre> 标签的垂直和水平溢出裁剪到其容器外,并显示滚动条

javascript - native 日期输入忽略 CSS

javascript - Polymer 跨元素共享样式

php - 需要添加对静态 HTML 站点的搜索

html - 页脚显示在中间某处

html - 将 DIV 拉伸(stretch)至页面宽度