IE 버전 강제 변환용 메타태그
<meta http-equiv="X-UA-Compatible" content="IE=10"> //10으로 강제변환
<meta http-equiv="X-UA-Compatible" content="IE=dege;"> // 최신
메타태그가 안 먹힐 때
if(navigator.userAgent.match(/Trident\/(\d.\d)/i)[1] == '6.0'){
<%
response.setHeader("X-UA-Compatible", "IE=8");
%>
}
////////////////////
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<%
if(request != null) {
String browser = request.getHeader("User-Agent");
if(browser != null && browser.indexOf("MSIE 9.0") >= 0) {
out.println("<meta http-equiv=\"X-UA-Compatible\" content=\"IE=8\">");
}
}
%>
댓글 없음:
댓글 쓰기