Internet explorer 是否可以在WP7中显示画布?
我正在尝试让Internet Explorer Mobile 7显示画布。Internet explorer 是否可以在WP7中显示画布?,internet-explorer,html,windows-phone-7,canvas,Internet Explorer,Html,Windows Phone 7,Canvas,我正在尝试让Internet Explorer Mobile 7显示画布。 我使用过ExplorerCanvas,该页面在IE7中工作(据我所知,IEMobile7是基于IE7的) 代码如下: <html> <head> <title>Canvas Test</title> <script type="text/javascript" src="excanvas.js"></script> <scr
我使用过ExplorerCanvas,该页面在IE7中工作(据我所知,IEMobile7是基于IE7的) 代码如下:
<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>
帆布试验
window.onload=函数(){
var canvasElement=document.getElementById(“canvas”);
var context=canvasElement.getContext(“2d”);
context.fillStyle=“蓝色”;
context.fillRect(20,20,20,20);
}
有没有可能在WP7上实现此功能?Windows Phone 7不支持HTML5,任何可能的手动实现(例如通过JavaScript)都不能保证有效。在您的情况下,您使用的是
CANVAS
标记,它不受支持。Windows Phone 7上的IE更像IE 7.5(具有IE7和IE8的功能),但这只是移动设备上可用的一个子集WP7上的IE!=Windows上的IE刚刚偶然发现一篇文章说WP 7.1将有一个基于IE9的新浏览器,并支持canvas:@Jimmy:特别是移动IE 7不支持ExplorerCanvas依赖的VML(或具有讽刺意味的Silverlight)。Windows Phone 7“Mango”更新将包括一个支持HTML5的浏览器