'WEB'에 해당되는 글 66건

  1. 2012.04.17 IE 호환성 보기 관련 1
2012. 4. 17. 03:18

IE 호환성 보기 관련

http-equiv attribute | httpEquiv property

7 out of 15 rated this helpful Rate this topic

[This documentation is preliminary and is subject to change.]

Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header.

HTML 4.01 Specification, Section 7.4.4

Syntax

HTML<element http-equiv="p" ... >
JavaScript

p = object.httpEquiv

Property values

Type: String

the information in the response header. See HTTP Response Headers for a list of possible values.

Standards information

Remarks

If the property is omitted, the name property should be used to identify the meta-information. The httpEquiv property is not case-sensitive.

Developers using the httpEquiv and content attributes to refresh documents from alternate URLs should treat the value of content as untrusted data. For more information, please see Security Considerations: Dynamic HTML.

As of Windows Internet Explorer 8, the httpEquiv attribute also supports a value of x-ua-compatible, which allows developers to specify the document compatibility mode that Windows Internet Explorer should use to display a webpage. To do this, set the content attribute to a String value containing a comma-delimited list of one or more of the following values.

ValueDescription
IE=9The webpage is displayed in IE9 Standards mode.
IE=8The webpage is displayed in IE8 Standards mode.
IE=7The webpage is displayed in IE7 Standards mode.
IE=5The webpage is displayed in IE5 (Quirks) mode.
IE=EmulateIE9If the webpage specifies a standards-based doctype directive, the page is displayed in IE9 mode; otherwise, it is displayed in IE5 mode.
IE=EmulateIE8If the webpage specifies a standards-based doctype directive, the page is displayed in IE8 mode; otherwise, it is displayed in IE5 mode.
IE=EmulateIE7If the webpage specifies a standards-based doctype directive, the page is displayed in IE7 mode; otherwise, it is displayed in IE5 mode.
IE=EdgeThe webpage is displayed in the highest mode available to the version of Internet Explorer used to view the page. This option is generally intended for testing purposes.

 

When the content attribute specifies multiple document modes, Internet Explorer displays the page in the highest mode supported by the browser. For more information, see Defining Document Compatibility.

Examples

This example causes the browser to reload the document every two seconds.

<meta http-equiv="refresh" content="2">

This example sets the character set for the document.

<meta http-equiv="Content-Type"
      content="text/html; charset=utf-8">

This example disables theme support for the document.

<meta http-equiv="msthemecompatible" content="no">

This example tells Internet Explorer to display a webpage in IE9 mode, if possible.

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

See also

Reference
content
meta
Conceptual
Defining Document Compatibility

 

 

Build date: 3/8/2012


---------------------------------------------------------------------------------------------------------------------------


페이지를 만들다 보니 자꾸 IE에서 호환성 보기로 변한다.해결 방법들이다.

기타잡다한 얘기IE8 Compatibility with X-UA-Compatible

아파치 적용
Implementing the META Switch on Apache

실제 페이지에서 meta 태그로 넣는 예
META Tags and Locking in Future Compatibility


자세한 설명은 아래 링크에 있음.
HTTP-EQUIV Attribute | httpEquiv Property


IE9’s Document Modes and JavaScript

무조건 해당 IE버젼으로 보여준다.
<meta http-equiv="X-UA-Compatible" content="IE=9">
<meta http-equiv="X-UA-Compatible" content="IE=8">
<meta http-equiv="X-UA-Compatible" content="IE=7">
<meta http-equiv="X-UA-Compatible" content="IE=6">
<meta http-equiv="X-UA-Compatible" content="IE=5">


이건 IE9를 최신으로 하되 실패시 ie5모드로 변환
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8">



가장최신버젼
<meta http-equiv="X-UA-Compatible" content="IE=Edge">

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



IE9’s Document Modes and JavaScript



http://blogs.msdn.com/b/ie/archive/2008/08/27/introducing-compatibility-view.aspx