CSS Hack, csshack
Css hack is widely used on the Internet. It is mainly caused by different IE versions. Do not use css hack as much as possible. You can use css hack if you cannot adjust it. I believe that with the elimination of earlier IE versions, css hack will not be used either.
Class internal HACK
IE6 identification --> underline "_" and star number "*"
IE7 identification --> asterisk "*"
Selector HACK
IE6 identification --> * html. class {}
IE7 identification --> * + html. class {} Or *: first-child + html. class {}. And so on.
HACK header reference:
<! -- [If IE]>
This text is only displayed in IE browser
<! [Endif] -->
<! -- [If IE 6]>
This text is only displayed in IE6 Browser
<! [Endif] -->
<! -- [If gte IE 6]>
This text is only displayed in Internet Explorer 6 or later versions.
<! [Endif] -->
<! -- [If! IE 8]>
This text is displayed in a non-IE8 Browser
<! [Endif] -->
<! -- [If! IE]>
This text is only displayed in non-ie browsers
<! [Endif] -->