문제

Can I use if lt IE9 in conjunction with if IE 8, in this manner:

<!--[if lt IE 9]><script src="html5shiv.js"></script><![endif]-->
<!--[if IE 8 ]> <html class="ie8"> <![endif]-->

I'm asking since the second condition is contained in the first one, maybe this could cause some glitch in one of the browsers?

도움이 되었습니까?

해결책

Yes it should work fine, and the order doesn't matter, ie will parse all the rules and execute any that matches

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top