使用带有CSS的Red-Green-Blue模型(RGB)定义颜色
使用CSSrgb()函数通过RGB模型定义颜色。您可以尝试运行以下代码以使用Reg-Green-Blue(RGB)模型设置颜色
示例
<!DOCTYPE html>
<html>
<head>
<style>
h1 {
background-color:hsl(0,100%,50%);
}
h2 {
background-color:hsl(192,89%,48%);
}
p {
background-color:rgb(0,0,255);
color: rgb(255,255,255);
}
</style>
</head>
<body>
<h1>Red Background</h1>
<h2>Blue Background</h2>
<p>This is demo text!</p>
</body>
</html>热门推荐
10 简短古文生日祝福语
11 女侠老师祝福语简短
12 新年送老师简短祝福语
13 婚礼仪式祝福语简短
14 初八的祝福语简短
15 生日祝福语简短独特格式
16 新年祝福语长辈简短红包
17 好姐妹生日祝福语 简短
18 关于扬州的祝福语简短