Recently, when I made a drop-down menu, I planned to use pure CSS, and suddenly I saw a bad CSS hack. Code(Usually pay little attention to it), and record it for backup.
<! -[If lte ie 6]> ............. <! [Endif]->
ITE: less than or equal to means less than or equal to IE6 browser. It is used for condition comments of IE browser and is often used for csshack and Js for IE.
The following situations are not verified.
1. <! -[If! IE]> <! -> All except Internet Explorer can be recognized <! -<! [Endif]->
2. <! -[If IE]> all IE identifiable <! [Endif]->
3. <! -[If IE 5.0]> only ie5.0 can recognize <! [Endif]->
4. <! -[If IE 5]> only ie5.0 and ie5.5 can be recognized <! [Endif]->
5. <! -[If gt ie 5.0]> both ie5.0 and ie5.0 can be recognized <! [Endif]->
6. <! -[If IE 6]> only IE6 can recognize <! [Endif]->
7. <! -[If lt IE 6]> versions earlier than IE6 and IE6 are recognizable <! [Endif]->
8. <! -[If gte ie 6]> IE6 and IE6 or later versions are recognizable <! [Endif]->
9. <! -[If IE 7]> only IE7 is recognizable <! [Endif]->
10. <! -[If lt IE 7]> versions earlier than IE7 and IE7 are recognizable <! [Endif]->
11. <! -[If gte ie 7]> IE7 and IE7 versions can be recognized <! [Endif]->