繁体   English   中英

CSS3微调器不适用于IE 11

[英]CSS3 spinner not working on IE 11

请有人帮帮我,我不知道为什么我的微调加载器不能在IE 11上运行,我已经在Google和论坛上进行了两次检查,但是没有任何结果,谢谢您的帮助,这是我的CSS代码:

<style>
#busybox {
}

#busybox div {
    top: calc(50% - 45px);
    left: calc(50% - 45px);
    position: fixed;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid {{spinnerColor}};
    border-left-color: transparent;
    border-right-color: transparent;
    z-index: 1000;
}

animation: busybox_kf 1s linear 0s infinite normal none running;
}

@keyframes busybox_kf {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@-webkit-keyframes busybox_kf {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
</style>

对各种版本的IE使用-webkit-transform-ms-transform 转换属性MDN页面提到了各种IE版本的支持级别。

@keyframes busybox_kf {
    0% { -ms-transform: rotate(0deg); -webkit-transform: rotate(0deg); transform: rotate(0deg) } /* same approach for remaining rules below */
    100% { transform: rotate(360deg); }
}

@-webkit-keyframes busybox_kf {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM