Home > Web Front-end > HTML Tutorial > Set transparent border

Set transparent border

WBOY
Release: 2016-08-31 08:41:50
Original
2206 people have browsed it

Sometimes it is necessary to set a transparent border, but there is no such color option, so RGBA is used. RGBA adds parameters to control alpha transparency based on RGB.

RGBA syntax example:

.div {background: rgba(200,200,200,0.5);}

When we need to set the transparency of the border, just fill in the last value between 0-1 as needed.

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