IE6 , . , , , , .
, - .. 2 :
<html>
<head>
<style type="text/css">
.style1 {
color:red
}
.style1.selected {
color:blue
}
</style>
</head>
<body>
<p class="style1">paragraph 1</p>
<p class="style1 selected">paragraph 2</p>
</body>
</html>
, , , 1 2 :
<html>
<head>
<style type="text/css">
.style1.selected {
color:blue
}
.style1 {
color:red
}
</style>
</head>
<body>
<p class="style1">paragraph 1</p>
<p class="style1 selected">paragraph 2</p>
</body>
</html>
, , , , , , , .
So you can make your css classes behave as you expect by ordering them. But this may not work in all cases, depending on how you want the classes to be applied. The only sure way to fix this in IE6 is to use javascript to add and remove CSS classes for certain events, which is a bit awkward.
moosie
source
share