简体   繁体   中英

Internet Explorer 7, 8 & 9: canvas support (Mootools)

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.

  1. 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?

  2. 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.

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