当前位置:网站首页>Background color translucent
Background color translucent
2022-06-12 08:40:00 【Little boy who likes hot pot】
1. How to write it :
background:rgba(0,0,0,0.3);
r:red g:green b:black
The last parameter is alpha transparency , The value range is 0—1 Range (0 For opacity ,1 For transparency ,0 To 1 The middle value of is translucent )
2. Background translucency refers to the translucency of the box background , The contents of the box are not affected
Code :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> Background color transparent writing </title>
<style>
div{
width: 300px;
height: 300px;
background: rgba(0,0,0,0.3);
}
</style>
</head>
<body>
<div> Background color transparent writing </div>
</body>
</html> Running effect :
边栏推荐
- Bean的作用域
- Difference between binary GB and gib
- Beidou satellite navigation system foundation part 1
- [advanced pointer I] character array & array pointer & pointer array
- JS to refresh the page after loading
- Vscode download slow solution
- JVM学习笔记:三 本地方法接口、执行引擎
- Query in MySQL
- Random acquisition of 4-digit non repeated verification code
- Encapsulate the amount input box component.
猜你喜欢

What should be paid attention to when establishing MES system? What benefits can it bring to the enterprise?

JVM learning notes: garbage collection mechanism

In the era of intelligent manufacturing, how do enterprises carry out digital transformation

What is the MES system? What is the operation process of MES system?

QT realizes multi screen and multi-resolution adaptation

FDA审查人员称Moderna COVID疫苗对5岁以下儿童安全有效

ctfshow web3

Display the remaining valid days according to the valid period

【数据存储】浮点型数据在内存中的存储

Handling abnormal data
随机推荐
Ankerui motor protector has the functions of overload inverse time limit, overload definite time limit, grounding, starting timeout, leakage, underload, phase failure, locked rotor, etc
Installation series of ROS system (II): ROS rosdep init/update error reporting solution
Loading circling effect during loading
[data storage] storage of floating point data in memory
【指针进阶三】实现C语言快排函数qsort&回调函数
MYSQL中的查询
JVM learning notes: garbage collection mechanism
Call method and apply method
Record the first step pit of date type
FDA reviewers say Moderna covid vaccine is safe and effective for children under 5 years of age
Seurat package addmodulescore is used for bulk RNA SEQ data
Build personal blog and web.
Error: ER_ NOT_ SUPPORTED_ AUTH_ MODE: Client does not support authentication protocol requested ... ...
Hands on deep learning -- weight decay and code implementation
Vscade debug TS
Close asymmetric key
How to understand the production scheduling of APS system?
What exactly is APS? You will know after reading the article
Audio and video related links
三国杀周边--------猪国杀题解