簡體   English   中英

進度欄動畫在IE 11中不起作用

[英]Progress bar animation not working in IE 11

進度欄動畫在IE中不起作用

$(".cvss-score").each(function (e) {
       var t = new ProgressBar.Circle(this, {
       color: s,
       easing: "easeInOut",
       strokeWidth: "5",
       duration: 3500,
       text: {
              value: "0"
             }
});

IE在給出錯誤“ ProgressBar”時未定義

正如我在相同的舊qstns上檢查過的,它告訴我將strokeWidth小於6,但仍然無法正常工作。

提前致謝。

嘗試使用下面的示例進行測試可能有助於解決您的問題。

 <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>ProgressBar.js - Minimal Example</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> .progress { height: 300px; } .progress > svg { height: 100%; display: block; } </style> </head> <body> <div class="progress" id="progress"></div> <!-- These are probably out dated so you might want to use newest versions --> <script src="https://cdn.rawgit.com/kimmobrunfeldt/progressbar.js/0.5.6/dist/progressbar.js"></script> <script> window.onload = function onLoad() { var circle = new ProgressBar.Circle('#progress', { color: '#FCB03C', strokeWidth: 4, trailWidth: 1, duration: 3000, easing: 'easeInOut', text: { value: "0" } }); circle.animate(1); }; </script> </body> </html> 

Internet Explorer 11中的輸出:

在此處輸入圖片說明

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM