标签< Meta http-equiv =" X-UA-Compatible" ..>对于iframe不适用于IE8 [英] Tag <Meta http-equiv="X-UA-Compatible" ..> for Iframe not works in IE8

查看:143
本文介绍了标签< Meta http-equiv =" X-UA-Compatible" ..>对于iframe不适用于IE8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为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).

这篇关于标签&lt; Meta http-equiv =&quot; X-UA-Compatible&quot; ..&GT;对于iframe不适用于IE8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆