How to set transparency in css background

coldplay.xixi
Release: 2021-04-29 15:00:07
Original
23657 people have browsed it

How to set transparency in css background: 1. Use [rgba()] to set the color and transparency of page elements; 2. The opacity attribute is inheritable and will make all elements in the container transparent.

How to set transparency in css background

The operating environment of this tutorial: windows7 system, css3 version, DELL G3 computer.

How to set transparency in css background:

rgba() in css can be used to set the color and transparency of page elements. The rgba() color value is an RGB color value. extension with an alpha channel through which you can set the opacity of an element.

How to set transparency in css background

In CSS3, an opacity attribute was added, using this attribute to set the transparency of the element. The opacity attribute is inheritable and will make all elements in the container transparent;

How to set transparency in css background

Recommended related tutorials: CSS video tutorial

The above is the detailed content of How to set transparency in css background. 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