问题
I used below code for Page transition effect but that does not support IE9 browser. I must apply that effect in IE9 browser. so, what can i do?
-webkit-transition: all 1s ease;
-moz-transition: all 1s ease;
-o-transition: all 1s ease;
-ms-transition: all 1s ease;
transition: all 1s ease;
回答1:
CSS Transitions are not supported in IE9.
http://caniuse.com/#feat=css-transitions
Also, IE10 uses unprefixed transition. (so -ms-transition is of no use here)
Use Modernizr to detect if css transitions are supported, else fallback with jQuery Animate for all browsers (including IE9) that do not support CSS transitions.
if(!Modernizr.csstransitions) { // CSS ANimations Not supported.
//ADD YOUR CODE HERE
}
来源:https://stackoverflow.com/questions/25581081/does-ie9-support-transition-css3-effects