ϡ ( IE9) .
(Front-end Web Developer) IE6 IE7 CSS IE :
CSS hacks

CSS hacks (_ , * ) CSS ѡ :
body { background-color: white; /* */ *background-color : black; /* 7 6 */ _background-color : blue; /* 6 */ }
1
2
3
4
5
body {
background-color: white; /* */
*background-color : black; /* 7 6 */
_background-color : blue; /* 6 */
}


IE7 IE6 .
Conditional Comments

1. : <html>

html ɡ ie8 IE8 ie7 IE7 ǡ :
<!DOCTYPE html> <!--[if lt IE 7 ]> <html class="ie6"> <![endif]--> <!--[if IE 7 ]> <html class="ie7"> <![endif]--> <!--[if IE 8 ]> <html class="ie8"> <![endif]--> <!--[if (gte IE 9)|!(IE)]><!--><html><!--<![endif]-->
1
2
3
4
5
<!DOCTYPE html>
<!--[if lt IE 7 ]> <html class="ie6"> <![endif]-->
<!--[if IE 7 ]> <html class="ie7"> <![endif]-->
<!--[if IE 8 ]> <html class="ie8"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html><!--<![endif]-->


<html> IE (ie6ie7ie8) CSS :
body{ background-color: white; } .ie7 body{ background-color: black; /* 7 */ } .ie6 body{ background-color: blue; /* 6 */ }
1
2
3
4
5
6
7
8
9
body{
background-color: white;
}
.ie7 body{
background-color: black; /* 7 */
}
.ie6 body{
background-color: blue; /* 6 */
}


2. : CSS IE

CSS ء :

<!--[if lt IE 7 ]> <link rel="stylesheet" type="text/css" href="css/ie6.css" /> <![endif]--> <!--[if IE 7 ]> <link rel="stylesheet" type="text/css" href="css/ie7.css" /> <![endif]--> <!--[if IE 8 ]> <link rel="stylesheet" type="text/css" href="css/ie8.css" /> <![endif]-->
1
2
3
4
5
6
7
8
9
<!--[if lt IE 7 ]>
<link rel="stylesheet" type="text/css" href="css/ie6.css" />
<![endif]-->
<!--[if IE 7 ]>
<link rel="stylesheet" type="text/css" href="css/ie7.css" />
<![endif]-->
<!--[if IE 8 ]>
<link rel="stylesheet" type="text/css" href="css/ie8.css" />
<![endif]-->


IE6 ie6.css IE7 ie7 .
ѡ IE6 HTML5 CSS3.