简体   繁体   English

Jquery Knob在IE 8中不起作用

[英]Jquery Knob not working in IE 8

Iam using jquery knob in my website. 我在我的网站上使用jquery旋钮。 it works fine in mozilla ,crome and safari. 它在mozilla,crome和safari中运行良好。 but not working in ie8. 但是没有在ie8工作。 This is my ie result :(. 这是我的结果:(。 在此输入图像描述

<script type="text/javascript">
$(function(){
$(".dial").knob({
    readOnly: true,
    fgColor: "#00ABC6",
    bgColor: "#666666",
    thickness: 0.25,
    width:50,
    height:50,
                });
});
</script>

Thanks. 谢谢。

jQuery Knob uses canvas and Internet explorer 8 does not support the canvas element. jQuery Knob使用canvas和Internet Explorer 8不支持canvas元素。 http://caniuse.com/#search=canvas . http://caniuse.com/#search=canvas

EDIT: You could try adding a polyfill for IE8, https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills#canvas . 编辑:您可以尝试为IE8添加polyfill, https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills#canvas But I don't know if any of them is compatible with jQuery knob. 但我不知道它们中的任何一个是否与jQuery旋钮兼容。

EDIT 2: http://code.google.com/p/explorercanvas/ might do the tric, Jquery Knob not working in IE 8. 编辑2: http //code.google.com/p/explorercanvas/可能会执行tric, Jquery Knob无法在IE 8中运行。

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

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