1. 程式人生 > >如何判斷瀏覽器為ie10以上

如何判斷瀏覽器為ie10以上

style ast media -h css ras 媒體查詢 如果 and

如果針對ie10 以上單獨寫css樣式的話,ie10以上已經不提供   <!--[if 。。。]><![endif]-->   這種方法去操作了,所以可以用css媒體查詢的方法

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) { /* IE10+ CSS styles go here */ }

很實用!

如何判斷瀏覽器為ie10以上