2013-06-06 2 views
0

IE9 용으로 작성했습니다.IE9가 호환성보기에 들어 가지 못하도록합니다.

때로는 Tools → Compatibility View 옵션이 자동으로 선택되어있는 것을 볼 수 있습니다 (필자는 수시로 표시를 해제해야하기 때문에 원하지 않습니다).

<!--[if lt IE 8]> 
    <div style=' clear: both; text-align:center; position: relative;'> 
     <a href="http://windows.microsoft.com/en-US/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode"> 
      <img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." /> 
     </a> 
    </div> 
<![endif]--> 
<!--[if lt IE 9]> 
    <script type="text/javascript" src="js/html5.js"></script> 
<![endif]--> 

이 어떻게 또 다시 발생이 동작을 방지 할 수 있습니다 :

다음 코드 조각은 위의 호환성보기 옵션이 선택 될 때 팝업?

답변

2

이 작업을 시도 할 수 있습니다 :

<meta http-equiv="X-UA-Compatible" content="IE=edge" /> 
+0

난에 대답을 설립했다. http://stackoverflow.com/questions/6348959/how-to-disable-compatibility-view-in-ie. IE9가 있기 때문에 다른 솔루션을 사용해 보겠습니다. 고마워요, 어쨌든. – Eitan

관련 문제