How to set text transparency effect in css

王林
Release: 2023-01-03 09:26:32
Original
5691 people have browsed it

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;
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!