Knowledge Map

IE CSS hack or 조건부 if구문 본문

WEB/HTML&CSS

IE CSS hack or 조건부 if구문

2016. 4. 20. 12:24

핵쩌는  IE는

조건문 if 주석이 9까지만 적용되고 CSS 핵은 제각각 이다.


정리는 이따가.

http://allone2016.tistory.com/33

http://stackoverflow.com/questions/20541306/how-to-write-a-css-hack-for-ie-11

http://webdir.tistory.com/451



참고로 placeholder은 ie9이하에서는 적용이 안되어서 placeholder.js를 사용했다. javascript로 구현되기도 하지만 일정이 급함..

http://jamesallardice.github.io/Placeholders.js/


http://e-rooms.tistory.com/entry/IE9%EC%9D%B4%ED%95%98-custom-placeholder-%EC%B2%98%EB%A6%AC%ED%95%98%EA%B8%B0


=====================================================


ie9에서 안되던 이유 추가"

ie에서는 css selector 갯수 제한, css 파일 시트 수 제한이 있다. 아래와 같다.


----------------------------------------------------------------------------------------------------------------

Referring the following from Microsoft:

The rules for IE9 are:

  • sheet may contain up to 4095 selectors (Demo)
  • sheet may @import up to 31 sheets
  • @import nesting supports up to 4 levels deep

----------------------------------------------------------------------------------------------------------------

 IE10 Platform Preview #2 significantly raises the limits described above. In IE10 (any browser/document mode):

  • A sheet may contain up to 65534 rules
  • A document may use up to 4095 stylesheets
  • @import nesting is limited to 4095 levels (due to the 4095 stylesheet limit)


참조 내용

http://spaceninja.com/2015/03/31/ie-css-limits/

'WEB > HTML&CSS' 카테고리의 다른 글

탭키 이동  (0) 2016.05.30
메타태그 정리  (0) 2016.05.30
css position  (0) 2016.04.14
비활성화 하기  (0) 2016.03.22
div*3 에서 float했을때 배경색 미적용, 말줄임 css  (0) 2016.03.18
Comments