前端项目

#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的属性作用效果

解决办法:只能提前设置

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容