테스트 사이트 - 개발 중인 베타 버전입니다

메타태그를 이용했데 익스플로러에서 기본값이 5로 나올까요? 채택완료

아쿠아틴티드 10년 전 조회 4,138

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

헤더 부분에 추가했는데

이상하게 자꾸 익스플로러5가 기본값으로 지정됩니다.ㅠㅠ

왜이런걸까요 

 

댓글을 작성하려면 로그인이 필요합니다.

답변 2개

채택된 답변
+20 포인트
P
10년 전

혹시 사용하시는 IE의 버전이 9 이신가요?

DTD 선언 상단에 여백이 존재하지 않는지 확인해보세요.

IE9에서 올바른 DTD선언이 이루어지지 않을경우 무조건 쿼크모드로 작동합니다. 

 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

YJSoft
10년 전

HTML4(Strict)

</p><p style="font-size: 14.6666669845581px;"><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "<a href="<a href="http://www.w3.org/TR/html4/strict.dtd" target="_blank" rel="noopener noreferrer">http://www.w3.org/TR/html4/strict.dtd</a>"><a href="http://www.w3.org/TR/html4/strict.dtd" target="_blank" rel="noopener noreferrer">http://www.w3.org/TR/html4/strict.dtd</a></a>"> </p><p style="font-size: 14.6666669845581px;">

 

HTML4(loose)

</p><p style="font-size: 14.6666669845581px;"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "<a href="<a href="http://www.w3.org/TR/html4/loose.dtd" target="_blank" rel="noopener noreferrer">http://www.w3.org/TR/html4/loose.dtd</a>"><a href="http://www.w3.org/TR/html4/loose.dtd" target="_blank" rel="noopener noreferrer">http://www.w3.org/TR/html4/loose.dtd</a></a>"> </p><p style="font-size: 14.6666669845581px;"><span id="husky_bookmark_end_1437725181116"></span></p><p style="font-size: 14.6666669845581px;"><span style="font-size: 14.6666669845581px; line-height: 1.5;">
 

 

HTML4(frameset)

</p><p style="font-size: 14.6666669845581px;"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "<a href="<a href="http://www.w3.org/TR/html4/frameset.dtd" target="_blank" rel="noopener noreferrer">http://www.w3.org/TR/html4/frameset.dtd</a>"><a href="http://www.w3.org/TR/html4/frameset.dtd" target="_blank" rel="noopener noreferrer">http://www.w3.org/TR/html4/frameset.dtd</a></a>"> </p><p style="font-size: 14.6666669845581px;"><span id="husky_bookmark_end_1437725181116"></span></p><p style="font-size: 14.6666669845581px;">

 

HTML5

</p><p style="font-size: 14.6666669845581px;"><!doctype html></p><p style="font-size: 14.6666669845581px;">

 

같은 문서 DTD 선언이 빠지거나, 잘못되지 ​않았는지 확인해주세요. DTD 선언이 없으면 오래된 HTML 페이지로 간주, Quirks 모드(IE5)가 사용됩니다. 또한 메타태그 위치는 최대한 위에 있어야 합니다.(즉 head 태그들 중 가장 먼저 두는편이 좋습니다)

 

마지막으로, 그래도 계속 IE5 모드라면 직접 호환성 보기 설정 등으로 지정하신 것은 아닌지 확인해주세요.

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인