크로스브라우징 질문이요 채택완료
픚쿤
11년 전
조회 4,468
<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 포인트
11년 전
<!--[if lte IE 9]></p><p><link rel="stylesheet" type="text/css" href="../css/test_ie9.css" /></p><p><![endif]--></p><p><!--[if gte IE 10]></p><p><link rel="stylesheet" type="text/css" href="../css/test.css" /></p><p><![endif]--></p><p><![if !IE]></p><p><link rel="stylesheet" type="text/css" href="../css/test.css"></p><p><![endif]></p><p>
여기서 lte는 이하를 나타냅니다.
gte는 이상을 나타내고
! 부정을 나타냅니다.
즉 익스9이하는 test_ie9.css, 익스10이상은 test.css, 익스가 아닌 브라우저는 test.css.
이걸 응용해도 되지 않을까요.
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인