我试图让Internet Explorer Mobile 7显示Canvas。
我已经使用ExplorerCanvas和页面在IE7中工作(据我所知IE移动7是基于IE7)。可以在WP7中显示Canvas吗?
下面是代码:
<html>
<head>
<title>Canvas Test</title>
<script type="text/javascript" src="excanvas.js"></script>
<script type="text/javascript">
window.onload = function() {
var canvasElement = document.getElementById("canvas");
var context = canvasElement.getContext("2d");
context.fillStyle = "blue";
context.fillRect(20,20,20,20);
}
</script>
</head>
<body>
<canvas id="canvas" width="100" height="100"/>
</body>
</html>
是否有可能得到这个WP7上的工作?
坏=(感谢 – 2011-02-10 23:16:33
@Jimmy:尤其是移动IE 7不支持VML(或具有讽刺意味的是Silverlight)在其上ExplorerCanvas依靠做它的东西 – AnthonyWJones 2011-02-11 11:14:09