问题描述
我为IE提供了这样的HTML结构。
I got such structure of HTML for IE.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body id="body">
<div>
<iframe>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body>
<!-- Here goes some graphic content using dojo libs -->
</body>
<html>
</iframe>
</div>
</body>
<html>
当我插入两个标题(iframe html的主标题和标题)标记
When I insert to the both headers (main and header of iframe html) tag
< meta http-equiv =X-UA-Compatiblecontent =IE = 8,IE = 9/>
nomatter标签内的内容(IE = 8或IE = 8,IE-9或IE = EDGE等)
nomatter what content inside a tag (IE=8 or IE=8,IE-9 or IE=EDGE etc)
在IE8浏览器模式下不生成内部iframe。但!!在IE7或IE9下正常工作
the inner iframe doesn't generate under IE8 browser mode. But!! works fine under IE7 or IE9
当我删除标签时 - 在所有版本的IE中都能正常工作。
When I remove the tag - works fine in all versions of IE.
哪里有问题?在DOCTYPE,标签或其他地方?
Where is the problem? In DOCTYPE, the tag or elsewhere?
推荐答案
页面根据最顶层的框架呈现(浏览器模式只设置一次在开头,嵌套框架中的所有值都被忽略。)
The page is rendered according to the topmost frame (the browser mode is set only once at the beginning and all values in nested frames are being ignored).
这篇关于标签< Meta http-equiv =" X-UA-Compatible" ..>对于iframe不适用于IE8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!