前端项目

#slides {
    -moz-transition: all 0.5s ease-in-out;
    -webkit-transition: all 0.5s ease-in-out;
    -ms-transition: height 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
    -webkit-overflow-scrolling: touch;
    visibility: visible;
    overflow: hidden;
    height: calc(100vh - 5px);
}

发现在IE11中无法得到过度效果。

原因:IE中的BUG,无法对calc的属性作用效果

  • http://caniuse.com/#search=transition
  • https://connect.microsoft.com/IE/feedback/details/762719/css3-calc-bug-inside-transition-or-transform

解决办法:只能提前设置

你可能感兴趣的:(前端项目)