The transparency attribute in css is opacity. The opacity attribute is used to set the opacity level of the element. The syntax is [opacity:value|inherit;]. The attribute value value is used to specify the opacity.
The transparency property in css is opacity.
Properties:
The opacity property sets the opacity level of an element.
(Learning video sharing: css video tutorial)
Syntax:
opacity: value|inherit;
Attribute value:
value Specifies opacity. From 0.0 (fully transparent) to 1.0 (fully opaque).
inherit The value of the opacity attribute should be inherited from the parent element.
Example:
Set the opacity level of the div element:
div { opacity:0.5; }
Related recommendations: CSS tutorial
The above is the detailed content of what is transparency property in css. For more information, please follow other related articles on the PHP Chinese website!