Coding/HTML & CSS
IE8 이하 버전에서의 시맨틱 태그
Kim-JS
2020. 4. 17. 19:06
Internet explorore 8 이하에서는 시멘틱 태그 지원이 안될수도 있다 .
http://caniuse.com에서 확인하여 보자
IE8 을 이용하는 이용자를 위해 가장 일반적인 방법으로 html5shiv 를 이용하는 방법이 있고, css 블록 을 직접 지정하는 방식이 있지만 잘쓰이지 않는다고 한다.. (버거로움 과 오타시 문제됨);;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HTML5 Shiv
아래링크 접속
https://github.com/afarkas/html5shiv
aFarkas/html5shiv
This script is the defacto way to enable use of HTML5 sectioning elements in legacy Internet Explorer. - aFarkas/html5shiv
github.com
위 링크의 src 안으로 이동 & 해당 파일 다운로드
해당파일을 프로젝트 파일 js 폴더에 저장 & head 안에 아래 코드 기입
<!--[if lt IE9
<script src="js/html5shiv.js"></script>
<![endif] -->
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~