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

How to set transparency in css background

coldplay.xixi
coldplay.xixiOriginal
2021-04-29 15:00:0723647browse

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!

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