<!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 100% 25% / 20%);}#p5 {background-color:hsl(120 60% 70%);}#p6 {background-color:hsl(290 100% 50%);}#p7 {background-color:hsl(290 60% 70%);}#p8 {background-color:hsl(290 60% 70% / 0.3);}</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>
<p id="p7">粉紫色</p>
<p id="p8">带透明度的粉紫色</p>
</body>
</html>