在IE11中瀏覽一片空白;
<body >
<canvas id="myCanvas" width="500" height="300"> Fallback content, in case the browser does not support Canvas.</canvas>
<script>
function draw(){
var canvas=document.getElementById("myCanvas")
var ctx=canvas.getContext('2d');
ctx.fillStyle="rgb(0,0,200)"
ctx.fileRect(0,0,100,100);
}
window.onload=function()
{
draw()
}
</script>
</body>
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/134178.html
標籤:HTML5
