简体   繁体   English

旋转器在IE中不旋转

[英]Spinner not spinning in IE

 .animationload { background-color: #fff; height: 100%; left: 0; position: fixed; top: 0; width: 100%; z-index: 10000; } .osahanloading { animation: 1.5s linear 0s normal none infinite running osahanloading; background: #fed37f none repeat scroll 0 0; border-radius: 50px; height: 50px; left: 50%; margin-left: -25px; margin-top: -25px; position: absolute; top: 50%; width: 50px; } .osahanloading::after { animation: 1.5s linear 0s normal none infinite running osahanloading_after; border-color: #85d6de transparent; border-radius: 80px; border-style: solid; border-width: 10px; content: ""; height: 80px; left: -15px; position: absolute; top: -15px; width: 80px; } @keyframes osahanloading { 0% { transform: rotate(0deg); } 50% { background: #85d6de none repeat scroll 0 0; transform: rotate(180deg); } 100% { transform: rotate(360deg); } } 
 <link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <div class="text-center"> <h2>Creative Animated Loading icon in HTML5 CSS3</h2> </div> <div class="animationload"> <div class="osahanloading"></div> </div> </div> </div> 

I have the spinner spinning in Chrome but doesn't spin in IE..I get the spinner but it's kind of static. 我有在Chrome中旋转的微调器,但没有在IE中旋转。我得到了微调器,但这是静态的。 Can someone have a look at the code and please let me know what's missing here. 有人可以看一下代码,请让我知道这里缺少什么。

For reference here's the code where I got the spinner from Link I have the spinner working perfectly fine but just is not right in IE. 供参考,这是我从Link获得微调器的代码,该微调器工作得很好,但在IE中不正确。

Thanks 谢谢

Update Plunker Link Plunker 更新柱塞链接柱塞

IE wasn't liking the extra params you had on your animation CSS. IE不喜欢动画CSS上的额外参数。 Removing some of the unnecessary parameters worked. 删除一些不必要的参数即可。

 .animationload { background-color: #fff; height: 100%; left: 0; position: fixed; top: 0; width: 100%; z-index: 10000; } .osahanloading { animation: 1.5s linear infinite osahanloading; background: #fed37f none repeat scroll 0 0; border-radius: 50px; height: 50px; left: 50%; margin-left: -25px; margin-top: -25px; position: absolute; top: 50%; width: 50px; } .osahanloading::after { animation: 1.5s linear infinite osahanloading_after; border-color: #85d6de transparent; border-radius: 80px; border-style: solid; border-width: 10px; content: ""; height: 80px; left: -15px; position: absolute; top: -15px; width: 80px; } @keyframes osahanloading { 0% { transform: rotate(0deg); } 50% { background: #85d6de none repeat scroll 0 0; transform: rotate(180deg); } 100% { transform: rotate(360deg); } } 
 <link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <div class="text-center"> <h2>Creative Animated Loading icon in HTML5 CSS3</h2> </div> <div class="animationload"> <div class="osahanloading"></div> </div> </div> </div> 

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

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