<!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>Document</title>
<style>
.box{
background-color: rgb(255,255,0);
background-color: rgba(106,153,85,.5);
background-color: #ff0000;
background-color: rgb(254, 156, 156);
background-color: hsla(98,50%,40%, 0.65);
/* 1.RGB
2.RGBA:a表示不透明度 1完全不透明 0完全透明 .5半透明
3.十六进制RGB:#红绿蓝
浓度表示:00-ff (两位两位重复可以简写,#aabbcc --> #abc)
4.HSL/HSLA: H色相(0-360)
S饱和 颜色浓度(0%-100%)
L亮度(0%-100%) */
}
</style>
</head>
<body>
</body>
</html>
CSS颜色
最新推荐文章于 2024-08-08 15:03:10 发布