如何在html5中创建一个透明的canvas? [英] How do I make a transparent canvas in html5?

查看:94
本文介绍了如何在html5中创建一个透明的canvas?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使画布透明?

推荐答案

画布在默认情况下是透明的。

Canvases are transparent by default.

尝试设置页面背景图片,然后在其上放置画布。

Try setting a page background image, and then put a canvas over it. If nothing is drawn on the canvas, you can fully see the page background.

想想画布就像在玻璃板上画画一样。

Think of a canvas as like painting on a glass plate.

这篇关于如何在html5中创建一个透明的canvas?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆