在 IE9 中我的浏览器已设置:
F10 -> 工具 -> 兼容性视图设置 -> 添加 192.168.10.227
因此,当我尝试提供文件时,浏览器模式是9兼容视图,文档模式是IE7标准。
我的问题是,如何将文档模式设置为IE9而不是IE7?
I tried:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9">
<meta http-equiv="X-UA-Compatible" content="IE=9" />
但两者都不起作用。
这是我的文件
<!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" xml:lang="en" lang="en">
<head>
<title>OpsCentral™</title>
<link rel="shortcut icon" type="image/x-icon" href="/opscentral/demo/favicon.ico" />
<link rel="icon" type="image/x-icon" href="/opscentral/demo/favicon.ico" />
<link rel="stylesheet" type="text/css" href="/opscentral/demo/css/main.css" />
<link rel="stylesheet" type="text/css" href="/opscentral/demo/css/widget_list.css" />
<script type="text/javascript" src="/opscentral/demo/js/jQuery/jQuery.js"></script>
<script type="text/javascript" src="/opscentral/demo/js/jQuery/jQuery.ajaxq.js"></script>
<script type="text/javascript" src="/opscentral/demo/js/util.js"></script>
<!-- *******************************************************************
WOM - Windows on Load Manager
******************************************************************** -->
<script type="text/javascript" src="/opscentral/demo/js/wom.js"></script>
<script type="text/javascript" src="/opscentral/demo/js/widget_list.js"></script>
<!-- *******************************************************************
NIFTY CORNERS
******************************************************************** -->
<script type="text/javascript" src="/opscentral/demo/js/niftyCornersCube.js"></script>
<link rel="stylesheet" type="text/css" href="/opscentral/demo/css/niftyCornersCube.css" />
<link rel="stylesheet" type="text/css" href="/opscentral/demo/css/jQuery/jQuery.pagination.css" />
<link rel="stylesheet" type="text/css" href="/opscentral/demo/css/widget_form.css" />
<script type="text/javascript" src="/opscentral/demo/js/jQuery/jQuery.dimensions.js"></script>
<script type="text/javascript" src="/opscentral/demo/js/jQuery/jQuery.jTemplates.js"></script>
<script type="text/javascript" src="/opscentral/demo/js/jQuery/jQuery.pagination.js"></script>
<script type="text/javascript" src="/opscentral/demo/js/jQuery/jQuery.XMLUtils.js"></script>
<link rel="stylesheet" type="text/css" href="/opscentral/demo/css/calendar-blue.css" />
<script type="text/javascript" src="/opscentral/demo/js/widget_calendar.js"></script>
<script type="text/javascript" src="/opscentral/demo/js/calendar/calendar.js"></script>
<script type="text/javascript" src="/opscentral/demo/js/calendar/calendar-en.js"></script>
<script type="text/javascript" src="/opscentral/demo/js/calendar/calendar-setup.js"></script>
<script type="text/javascript" src="/opscentral/demo/recordingJssCss/js/jquery-1.8.2.js"></script>
<script type='text/javascript'>
var $jq182 = jQuery.noConflict();
</script>
<script type="text/javascript" src="/opscentral/demo/recordingJssCss/js/jquery-ui-1.9.1.custom.js"></script>
<link rel="stylesheet" type="text/css" href="/opscentral/demo/recordingJssCss/css/smoothness/jquery-ui-1.9.1.custom.min.css" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8">
<meta http-equiv="X-UA-Compatible" content="IE=8" />
我认为你还应该添加<!doctype html>
查看这个帖子强制 Internet Explorer 9 使用标准文档模式 https://stackoverflow.com/questions/10975107/force-to-use-internet-explorer-ie9-standards-document-mode
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)