Javascript judges navigator. userAgent. indexOf ("iPhone ")
Determine IE type in HTML
1. <! -- [If! IE]> <! --> All except IE 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 and later versions can be recognized <! [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 identified <! [Endif] -->