Home  >  Article  >  Web Front-end  >  How to set text transparency effect in css

How to set text transparency effect in css

王林
王林Original
2021-03-01 17:21:275715browse

How to set the text transparency effect in css: You can use the opacity attribute to set the text transparency effect, such as [.mytext{opacity:0.5}], which means specifying the opacity of the element as 0.5.

How to set text transparency effect in css

The operating environment of this article: windows10 system, css 3, thinkpad t480 computer.

Related properties:

The Opacity property sets the transparency level of an element.

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

Set text transparency effect The specific code is as follows:

How to set text transparency effect in css

Related recommendations: css video tutorial

The above is the detailed content of How to set text transparency effect 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