Monday, April 23, 2012

[HTML][好文] 如何讓IE支援canvas元素

如何讓IE支援canvas元素


下載ExplorerCanvas–excanvas.js–是個開源碼,在IE上實作了製圖區的API。
下載後,只要匯入excanvas.js即可:
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <!--[if IE]>
      <script src="excanvas.js"></script>
    <![endif]-->
  </head>
  <body>
  ...
  </body>
</html>
條件式註解讓只有IE的瀏覽器,才會載入excanvas.js檔案
純excanvas.js載點

No comments:

Post a Comment