简体   繁体   English

IE8兼容模式问题

[英]IE8 Compatibility mode issue

I have created one jsp page that page is working fine across the all browser.when i rendered that page in IE8 browser it's working fine.But problem is when i select 我创建了一个jsp页面,该页面在所有浏览器上都可以正常工作。当我在IE8浏览器中呈现该页面时,它可以正常工作。但是问题是当我选择

Browser Mode-IE8 Compatibility View than corresponding 浏览器模式-IE8兼容性视图比相应的

Document Mode- IE7 Standards will be selected automatically. 文档模式-IE7标准将被自动选择。

then my jsp page giving a lot alignment issue.But when i select again 然后我的jsp页面给出了很多对齐问题。但是当我再次选择时

Document Mode- IE8 Standards than my page working fine.. 文档模式-IE8标准比我的页面工作还好。

How i can control this thing Is there any way to setting because i can change again again the document mode..i want Document Mode will fix IE8 Standard.. 我如何控制此东西有什么设置方法,因为我可以再次更改文档模式。.我希望文档模式可以修复IE8 Standard。

Please provide the solution how i can handle this issue... 请提供解决方案,我将如何处理此问题...

Try changing the DOCTYPE to: 尝试将DOCTYPE更改为:

<DOCTYPE html>

And then try adding this meta tag into the <head> of your document: 然后尝试将此meta标签添加到文档的<head>中:

<meta http-equiv="x-ua-compatible" content="IE=Edge"/>

This meta tag should force IE into standards mode, you can find more information about it here . 此meta标签应强制IE进入标准模式,您可以在此处找到有关它的更多信息。

You should end up with something that looks like: 您应该以如下形式结束:

<DOCTYPE html>
<html>
    <head>
        <title>Page Title</title>
        <meta http-equiv="x-ua-compatible" content="IE=Edge"/>
    </head>
    <body>
        <p>Content</p>
    </body>
</html>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM