RGBA is a CSS color that can set color value and transparency Below is the use of rgba() to set the white color to 50% transparency.
RGBA is an extension of the RGB color model. This acronym stands for the initials of the three primary colors red, green and blue, and the Alpha value represents the transparency/opacity of the color. RGBA Syntax The format of RGBA color representation is:
The first three values (red, green, and blue) range from 0 to 255 as integers or from 0% to 100% as percentages. These values describe the amounts of the three primary colors red, green and blue that are present in the intended color. background-color: rgba(255, 0, 0, 1); result: Percentages can also be used: background-color: rgba(100%, 0%, 0%, 1); result: The fourth value, alpha, specifies the transparency/opacity of the color and ranges from 0.0 to 1.0. The following example sets the yellow color to 50% transparency: color: rgba(255, 242, 0, 0.5); CSS translucency is compatible with Firefox, IE, and Chrome, and the current browser versions are relatively high. You can use it in your project with confidence. |
<<: 3D tunnel effect implemented by CSS3
Download tutorial of mysql-connector-java.jar pac...
Table property settings that work well: Copy code ...
If people have been idle for too long, they will ...
This article example shares the specific code of ...
The format of textarea can be saved to the databas...
Table of contents explain: Summarize Replenish Un...
Preface Every developer who comes into contact wi...
Official documentation: So mysql should be starte...
environment Hostname IP address Serve Prometheus ...
Web Services are concerned with application-to-ap...
Table of contents Asynchronous traversal Asynchro...
What is NFS? network file system A method or mech...
1. Databases and database instances In the study ...
Effect picture: html: <div class='site_bar...
This article example shares the specific code of ...