简体   繁体   English

CSS3微调器不适用于IE 11

[英]CSS3 spinner not working on IE 11

please can someone help me I don't know why my spinner loader not working on IE 11, I have double checked on Google and forums but without any result thanks for the help in advance this is my CSS code : 请有人帮帮我,我不知道为什么我的微调加载器不能在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>

Use -webkit-transform or -ms-transform for various versions of IE. 对各种版本的IE使用-webkit-transform-ms-transform The MDN page for transform property mentions the support level for the various IE versions. 转换属性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