您可以尝试使用额外的白色层来近似它,以增加不需要的亮度
calc()
div:nth-child(1) {
background: hsl(114.54545, 44%, calc(55.88235% * 1.1));
}
div:nth-child(2) {
background: hsl(114.54545, 44%, 55.88235%);
position:relative;
z-index:0;
}
div:nth-child(2):before {
content:"";
position:absolute;
z-index:-1;
top:0;
left:0;
right:0;
bottom:0;
background:rgba(255,255,255,0.1);
}
<div>calc</div>
<div>static</div>
您也可以使用多个背景:
div:nth-child(1) {
background: hsl(114.54545, 44%, calc(55.88235% * 1.1));
}
div:nth-child(2) {
background:
linear-gradient(rgba(255,255,255,0.1),rgba(255,255,255,0.1)),
hsl(114.54545, 44%, 55.88235%);
}
<div>计算<div>
<div>静态<div>