zoukankan      html  css  js  c++  java
  • 设置IE兼容模式

    一.指定文件兼容性模式
    要为你的网页指定文件模式,需要在你的网页中使用meta元素放入x-ua-compatible http-equiv 标头。
    1. 强制ie8使用ie8模式来解析,而且那个兼容性视图按钮也被去掉了
    <meta http-equiv="x-ua-compatible" content="ie=8"/>


    2. google chrome frame也可以让ie用上chrome的引擎:
    < meta http-equiv="x-ua-compatible" content="chrome=1" />


    3.强制ie8使用ie7模式来解析
    <meta http-equiv="x-ua-compatible" content="ie=emulateie7"><!-- ie7 mode --> 或者 
    < meta http-equiv="x-ua-compatible" content="ie=7"><!-- ie7 mode -->

    4.强制ie8使用ie6或ie5模式来解析
    <meta http-equiv="x-ua-compatible" content="ie=6"><!-- ie6 mode -->   
    < meta http-equiv="x-ua-compatible" content="ie=5"><!-- ie5 mode --> 

    5.如果一个特定版本的ie支持所要求的兼容性模式多于一种,如:
    <meta http-equiv="x-ua-compatible" content="ie=5; ie=8" />

  • 相关阅读:
    可怕的用户习惯
    编程5年了,养成的臭脾气
    从5楼到9楼
    Google(10|9)大黄金定律
    如果我们也有Lab
    心情有点烦乱
    [zz]万能类型boost::any
    [zz]GDB调试精粹及使用实例
    [zz]sqlalchemy使用
    sqlalchemy实际使用
  • 原文地址:https://www.cnblogs.com/xdoudou/p/3163656.html
Copyright © 2011-2022 走看看