IE9,IE10已经支持canvas的2d功能了
但是IE8还是不行的,需要用一个js文件虚拟canvas功能。
<!--[if IE]><script src="excanvas.js"></script><![endif]--> <script> var canvas = document.getElementById("myTreeContainer"); if (typeof window.G_vmlCanvasManager!="undefined") { canvas=window.G_vmlCanvasManager.initElement(canvas); var ctx=canvas.getContext("2d"); }else { var ctx=canvas.getContext("2d"); } ... </script>
http://code.google.com/p/explorercanvas/downloads/list
|