익스플로러 브러우저를 체크하는 법 궁금합니다
본문
메인을 모바일일때와 pc일때를 구별해서 다른 배너를 보여주는건 구현했는데요
익스하위버전에서는 안먹는 CSS가 있어서 그때는 그냥 이미지만 띄울려고 하는데 익스플로러인지 구별하는 소스가 있을까요
익스하위버전에서는 안먹는 CSS가 있어서 그때는 그냥 이미지만 띄울려고 하는데 익스플로러인지 구별하는 소스가 있을까요
답변 1
<link rel="stylesheet" href="/css/style.css" type="text/css">
<!--[if lt IE 7 ]><link rel="stylesheet" href="/css/ie6.css" type="text/css" /><![endif]--><!--[if lt IE 8 ]><link rel="stylesheet" href="/css/ie7.css" type="text/css" /><![endif]-->
<!--[if gte IE 8 ]><link rel="stylesheet" href="/css/ie8.css" type="text/css" /><![endif]-->
이런식으로 하시면 됩니다.
답변을 작성하시기 전에 로그인 해주세요.