Is there a way to use Canvas in IE7 or IE8?

Is there a workaround for using the Canvas tag in IE7 and IE8? Pls let me know.

<input type="text" id="textSign" value="Sign" /> <input type="button" onclick="javascript:return changeSign();" value="changeSign" /> <canvas id="e" width="150" height="100"></canvas> <script type="text/javascript"> var textSign = document.getElementById("textSign").value; function changeSign() { textSign = document.getElementById("textSign").value; var canvas = document.getElementById("e"); var context = canvas.getContext("2d"); context.fillStyle = "#4c4c4c"; context.font = "30px Giddyup Std"; context.fillText (textSign , 20, 50); } </script> 
+6
source share
3 answers

Yes , there is a project for modeling the canvas API in older versions of IE (7 and 8).

You can find it here , just include the javascript file and continue as the canvas is supported.

Note that this is another layer of JavaScript code at the top of IE (and it is not very popular for quickly parsing JavaScript ...)

+8
source

Yes there is: https://developers.google.com/chrome/chrome-frame/

But, as with any modern web technology, you will have to conduct extensive tests during development. And depending on your deployment location, you may not be allowed to use this (sysadmins still imposing IE7 may have strange requirements).

+1
source

Not. Canvas element is supported only in IE9.

-1
source

Source: https://habr.com/ru/post/915083/


All Articles