<! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd" >
< html lang ="ru" >
< head >
< meta http-equiv ="content-type" content ="text/html;charset=utf-8" >
< title > Ie bg test </ title >
< style type ="text/css" >
#testbg {
width:200px;
height:200px;
}
#testbg.blue { /* IE */
background:blue;
}
#testbg.red { /* , - :D */
background:red;
}
#testbg.green { /* , - :D */
background:green;
}
#testbg.red p {
color:blue;
}
</ style >
</ head >
< body >
< div id ="testbg" class ="red" >
< p >
IE6 , , , . , :D
</ p >
</ div >
</ body >
</ html >
* This source code was highlighted with Source Code Highlighter .
Source: https://habr.com/ru/post/86214/
All Articles