简体   繁体   中英

Jquery Knob not working in IE 8

Iam using jquery knob in my website. it works fine in mozilla ,crome and safari. but not working in 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. 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 . But I don't know if any of them is compatible with jQuery knob.

EDIT 2: http://code.google.com/p/explorercanvas/ might do the tric, Jquery Knob not working in IE 8.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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