<!DOCTYPE html>
<html lang="zh-CN">
<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>文本颜色</title>
<style>
/* 表示颜色的三种方式:
单词、十六进制(用的最多)、RGB */
div{
color: blue;
}
p{
color: #ff03f7;
}
h2{
color: rgb(8, 233, 203);
}
</style>
</head>
<body>
<div>好想吃汉堡啊!!!!</div>
<p>好想喝可乐啊!!!!</p>
<h2>什么时候解封啊!!!!</h2>
</body>
</html>
文字颜色(color)
最新推荐文章于 2023-05-23 17:28:52 发布