<script type="text/javascript">
if(navigator.appName.charAt(0) == 'M' && navigator.appVersion.indexOf('MSIE 9') == -1 ){
location.href = 'index_ie.html';
}
위 스크립트 소스를 이용해 크로스브라우징을 설정 중입니다.
저렇게 하면 ie9 잊상은 원래의 페이지에 머물러야 하는데
ie10이 골치네요...
ie10이 저 소스를 못 읽고 저 소스에 설정해둔 index_ie.html로 가버립니다..
돌겠네요 ㅠㅠㅠ...
이거 해결방법 아시는 분 있을까요??
답변 1개
채택된 답변
+20 포인트
2014-07-03 (목) 10:22:07
Copy
<!--[if lte IE 9]><link rel="stylesheet" type="text/css" href="../css/test_ie9.css" /><![endif]--><!--[if gte IE 10]><link rel="stylesheet" type="text/css" href="../css/test.css" /><![endif]--><![if !IE]><link rel="stylesheet" type="text/css" href="../css/test.css"><![endif]>
여기서 lte는 이하를 나타냅니다.
gte는 이상을 나타내고
! 부정을 나타냅니다.
즉 익스9이하는 test_ie9.css, 익스10이상은 test.css, 익스가 아닌 브라우저는 test.css.
이걸 응용해도 되지 않을까요.
답변을 작성하려면 로그인이 필요합니다.