我正在尝试使html5星空的背景透明。但为什么会出现错误?
如果背景色是黑色,可以使用以下链接: http://www.thediscopalace.com/testing.php 如果要背景透明,请使用以下链接: http://www.thediscopalace.com/testing1.php 我将
如果背景色是黑色,可以使用以下链接: http://www.thediscopalace.com/testing.php 如果要背景透明,请使用以下链接: http://www.thediscopalace.com/testing1.php 我将
context.fillStyle='rgb(36,14,118)';
=黑色更改为
context.fillStyle='rgba(36,14,118, 0)';
=透明
请参考以下图片:
![enter image description here](https://istack.dev59.com/hufPO.webp)