2013-06-19 7 views
8

W IE9 moja przeglądarka ma ustawione:Jak ustawić tryb dokumentu IE?

F10 -> Narzędzia -> ustawienia widoki z kompatybilnością -> dodaje 192.168.10.227

dlatego gdy próbuję służyć pliku, tryb przeglądarki jest 9 compat widok, dokument jest trybem IE7.

Moje pytanie brzmi: jak ustawić tryb dokumentu IE9 zamiast IE7?

Próbowałem:

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

ale nie działa.

tutaj jest mój dokument

<!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&trade;</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" /> 
+0

W [to pytanie] (http://stackoverflow.com/questions/9182428/force-internet-explorer-9-to-use-ie-9-mode?rq=1) zaznaczona odpowiedź poleca umieścić linia w ** nagłówku HTTP **, a nie sam HTML, możesz spróbować. :) – Arkana

Odpowiedz

5

wierzę trzeba podać

<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" /> 

Edycja

Również powinienem dołączyć

<meta charset="utf-8" /> 

lub jakikolwiek inny zestaw znaków do używania. Przeniesienie ich na czubek głowy również miałoby znaczenie.

+0

dziękuję za odpowiedź też :) – Stupidfrog

+0

To działało dla mnie, i zrobiłem to [jakże] (http://stackoverflow.com/a/9624500/819417). –

-1

Ale według Dev Center IE,

Ponadto, nie należy korzystać z "X-UA-Compatible" meta tag na stronie lub wysłać niestandardowy nagłówek HTTP z serwera WWW.

Aby wymusić przeglądanie strony internetowej wyświetlanej w programie Internet Explorer 10 w określonym trybie zgodności dokumentu, najpierw otwórz narzędzia F12, naciskając klawisz F12. Następnie w menu Tryb przeglądarki kliknij Internet Explorer 10, a następnie w menu Tryb dokumentu kliknij Standardy.

Powiązane problemy