Home >Web Front-end >CSS Tutorial >what is transparency property in css

what is transparency property in css

王林
王林Original
2020-11-18 16:51:223910browse

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.

what is transparency property in css

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn