x
 
<!DOCTYPE html>
<html>
<head>
<style>
#p1 {background-color:hsl(120, 100%, 50%);}
#p2 {background-color:hsl(120, 100%, 75%);}
#p3 {background-color:hsl(120, 100%, 25%);}
#p4 {background-color:hsl(120, 60%, 70%);}
#p5 {background-color:hsl(290, 100%, 50%);}
#p6 {background-color:hsl(290, 60%, 70%);}
</style>
</head>
<body>
<h1>hsl() 函数(旧版语法)</h1>
<p>HSL 颜色:</p>
<p id="p1">绿色</p>
<p id="p2">浅绿色</p>
<p id="p3">深绿色</p>
<p id="p4">粉绿色</p>
<p id="p5">紫罗兰色</p>
<p id="p6">粉紫色</p>
</body>
</html>