7

Web page contains 24 iframes which are refreshed periodically using meta refresh in iframe content:

<!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>

In Internet Explorer 10 after page is refreshed by pressing F5, error

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

appears in IE developer tools console tab and bottom group text in page appear in single column. In Chrome page is rendered properly without error. I verified that all tags are matched in page. How to fix this ?

jquery, jquery iu, mono/ASP.NET MVC3 are used.

4

1 回答 1

2

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

<!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 时,我不得不问这是否真的是最好的/最新的解决方案。;-)

于 2013-05-29T07:44:48.800 回答