I have written this Mootools example of a simple tool using canvas:
http://jsfiddle.net/beingalex/MZTbW/11/
It simply creates a line from one clicked location to the other.
I have two questions really, both relating to Internet Explorer's support of the canvas
tag.
I was under the impression that IE9 supported canvas
but from the demonstration above I conclude I was wrong. Or am I? I have implemented it incorrectly?
I know that IE 7 & 8 do not support canvas
so I am looking for advice on how to go about doing what I have done in the demonstration above for these browsers.
Thanks in advance
IE9 perfectly supports canvas.
If your page doesn't work fine it's usually because your header isn't right. Use this :
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
For IE7 and IE8 you'll need this : http://www.google.com/chromeframe?prefersystemlevel=true
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.