본문 바로가기

FrontEnd/CSS

css hack

참고



#hack{
	color:red; /* All browsers */
	color:red !important;/* All browsers but IE6 */
	_color:red; /* Only works in IE6 */
	*color:red; /* IE6, IE7 */
	+color:red;/* Only works in IE7*/
	*+color:red; /* Only works in IE7 */
	color:red\0/;  /* Only works in IE8 */
	color:red\9; /* IE7, IE8 */
	color:red\0; /* IE8, IE9 */
	color:red\9\0;/*Only works in IE9*/
}
*  #hack { /* IE6 */
	color:#ff0000;
}
*+ html #hack { /* IE7 */
	color:#ff0000;
}
#ie8#hack{ /* Double ID bug IE8 */
	color:green; 
}
@media \0screen { /* IE8 */
	#hack {
		color:black; 
	} 
}
. ie10 #hack{
	color:red; /* Only works in IE10 */
}
 /* Contidion */

	Here goes code for IE only



	Code for all browsers except for IE:


'FrontEnd > CSS' 카테고리의 다른 글

부트스트랩 +iconmoon  (0) 2015.07.06
Div, Text 중앙, 가운데 정렬  (0) 2015.04.10
css hack  (0) 2014.03.04
CSS odd & even rules  (0) 2010.08.11
네비게이션 링크  (0) 2009.04.24
웹 표준 경진대회 & CSS PLAYGROUND  (0) 2009.03.16

태그