我正在使用TagCanvas 插件并想在 IE 8 浏览器中对其进行测试,据记载,我为 IE <9 添加了 Exoplorer 画布,我无法初始化画布元素并在 IE 8 中查看它!
<head>
<script src="excanvas.js" type="text/javascript"></script>
<script src="jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="tagcanvas.js" type="text/javascript"></script>
<script type="text/javascript">
window.onload = function () {
try {
TagCanvas.Start('myCanvas');
} catch (e) {
// something went wrong, hide the canvas container
alert("cannot load");
document.getElementById('myCanvasContainer').style.display = 'none';
}
};
</script>
</head>
<body>
<div id="myCanvasContainer">
<canvas width="300" height="300" id="myCanvas">
<ul>
<li><a href="#">test</a></li>
<li><a href="#">test1</a></li>
</ul>
</canvas>
</div>
</body>
我能知道我是否遗漏了 IE 8 支持的 canvas 元素的任何参考吗?