The property that changes transparency in css is Opacity. The Opacity attribute sets the transparency level of an element. The syntax is [opacity: value|inherit;], value specifies the opacity, and inherit indicates that the attribute value should be inherited from the parent element.
The operating environment of this tutorial: Windows 10 system, CSS3, this article is applicable to all brands of computers.
The Opacity property sets the transparency level of an element.
(Learning video recommendation: css video tutorial)
## Syntax:opacity: value|inherit;
div { opacity:0.5; }
The above is the detailed content of What is the property to change transparency in css. For more information, please follow other related articles on the PHP Chinese website!