真无语了,完全找不到问题在哪?

来源:7-4 编程练习

沧海的雨季

2018-10-01 22:43:49

<!DOCTYPE html>

<html>

<head>

    <meta charset="UTF-8" />

    <title>阴影</title>

    <style>

        canvas{background-color:lightblue;}

    </style>

</head>

<body>

    <canvas id="canvas" width="800px" height="800px">

        您的浏览器不支持canvas

    </canvas>

    <script>

        var canvas=document.getElementById("canvas");

        var context=canvas.getContext("2d");

       //在此处补充代码

   context.shadowOffsetX=15;

   context.shadowOffsetY=15;

   context.shadowColor="rgba(255,215,0,0.7)";

   context.shadowBlur=20;

   context.fillStyle="orange";

   context.arc(400,200,50,0,Math.PI*2,true);

   context.fill();

    </script>

</body>

</html>

老师帮忙看下哪错了吧,看了几遍都没发现哪错...

写回答

1回答

Miss路

2018-10-06

http://img.mukewang.com/climg/5bb8370e0001268408280110.jpg

这一行的标点有问题,这是中文状态下的,改成英文状态下的就好了,粗心问题哦,以后要注意一下。

欢迎采纳!

0

0 学习 · 4826 问题

查看课程