IE8浏览器模式和放大器;标准模式 [英] IE8 Browser Mode & Standards Mode

查看:144
本文介绍了IE8浏览器模式和放大器;标准模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要强制IE8显示如下:


  1. 浏览器模式:Internet Explorer 8的


  2. 文档模式:IE8标准


我加入这个标签但它不仅影响了文档模式,而不是浏览器模式。我如何重写浏览器模式,以确保页面始终与IE8浏览器模式下显示呢?

 < META HTTP-EQUIV =X-UA-Compatible的内容=IE = 8/>


解决方案

只要给HTML页面右侧 DOCTYPE 。例如。

 <!DOCTYPE HTML>

对于所有的文档类型的解释和概述,请参阅 http://hsivonen.iki.fi/doctype/ 。你不一定需要这些(讨厌)元头。

I need to force IE8 to display as follows:

  1. Browser Mode: Internet Explorer 8

  2. Document Mode: IE8 Standards

I have added this tag however it only affects the document mode, not the browser mode. How do I override browser mode to ensure the page is always shown with IE8 browser mode too?

<meta http-equiv="X-UA-Compatible" content="IE=8" />

解决方案

Just give the HTML page the right doctype. E.g.

<!doctype html>

For an explanation and overview of all doctypes see http://hsivonen.iki.fi/doctype/. You don't necessarily need those (nasty) meta headers.

这篇关于IE8浏览器模式和放大器;标准模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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