ie版本識別

所有的IE可識別
<!--[if IE]> Only IE <![endif]--> 
只有IE5.0可以識別  
<!--[if IE 5.0]> Only IE 5.0 <![endif]--> 
高於IE5.0都可以識別 
<!--[if gt IE 5.0]> Only IE 5.0+ <![endif]--> 
低於IE6可識別 
<!--[if lt IE 6]> Only IE 6- <![endif]--> 
IE6以及IE6以上都可識別 
<!--[if gte IE 6]> Only IE 6/+ <![endif]-->
IE7及ie7以下版本可識別 
<!--[if lte IE 7]> Only IE 7/- <![endif]--> 
<!--[if !IE]><--> 
只有不是ie瀏覽器才能看到這裏 
<![endif]--> 

lte:就是Less than or equal to的簡寫,也就是小於或等於的意思。 
lt :就是Less than的簡寫,也就是小於的意思。 
gte:就是Greater than or equal to的簡寫,也就是大於或等於的意思。 
gt :就是Greater than的簡寫,也就是大於的意思。 
! :就是不等於的意思,跟javascript裏的不等於判斷符相同 





發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章