zoukankan      html  css  js  c++  java
  • IE9下frameset会有问题???怎么解决??

    <!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>
        <meta http-equiv="Content-Type" content="text/html; charset=GBK" />
        <meta http-equiv="Content-Language" content="zh-CN" />
    </head>
    <frameset id="gl2010" framespacing="0" border="1" frameborder="no">
        <frame src="http://www.gl.gov.cn/Series/glga/index.html">
    </frameset>
    <body>
    </body>
    </html>
    

     ie9这样显示的话高度上会有问题。。。。会出现排版上高度错乱!!!

    正常这个页面打开不会有问题。。。。在ie8下也没有问题,但是这个在ie9下就有这样的问题。。

    各位大虾怎么解决啊????

    答案:1、放上这个<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

    2、标准的作法

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

    换成 <html>

    xhtml 1.0 标准不兼容 frameset

    加入 <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> 
    就是使用ie7渲染模式,老浏览器当然能兼容老标签。

  • 相关阅读:
    c# 泛型总结
    透过字节码分析java基本类型数组的内存分配方式。
    c#索引器
    redis在asp.net 中的应用
    Unity3D shaderLab
    Unity3d Asset Store 打不开
    C# 类型转换的开销
    [转]权重算法
    Coroutine的原理以及实现
    在Unity3D里使用WinForm
  • 原文地址:https://www.cnblogs.com/wenghaowen/p/2721122.html
Copyright © 2011-2022 走看看