|
|
@@ -0,0 +1,26 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html lang="en">
|
|
|
+<head>
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
+ <title>Document</title>
|
|
|
+ <style>
|
|
|
+ .box{
|
|
|
+ width: 200px;
|
|
|
+ height: 200px;
|
|
|
+ /* 颜色格式 */
|
|
|
+ /* 单词用作颜色的色值 */
|
|
|
+ /* background-color: blue; */
|
|
|
+ /* 十六进制颜色值 0-9 A-F构成 #开头 6位或3位数字 */
|
|
|
+ background-color: #ffffff;
|
|
|
+ /* rgb 颜色值 rgb(红,绿,蓝) 0-255 有3位构成*/
|
|
|
+ background-color: rgb(0,0,0);
|
|
|
+ /* hsl 颜色值 hsl(色相,饱和度,亮度) 0-360 0-100 0-100 有3位构成 */
|
|
|
+ background-color: hsl(0,0,0);
|
|
|
+ }
|
|
|
+ </style>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+ <div class="box"></div>
|
|
|
+</body>
|
|
|
+</html>
|