网页包含 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/