saturation($color):从一个颜色中获取饱和度(saturation)值;
sass -i
>> saturation(#7ab)//得到#7ab颜色的饱和度值
33.33333%
...
4年前 (2021-08-19)
喜欢
hue($color):从一个颜色中获取色相(hue)值;
sass -i
>> hue(#7ab)//得到#7ab颜色的色相值
195deg
...
4年前 (2021-08-19)
喜欢
hsla($hue,$saturation,$lightness,$alpha):通过色相(hue)、饱和度(saturation)、亮度(lightness)和透明(alpha)的值创建一个颜色;
sass -i
>> hsla(200,30%,60%,.8)//通...
4年前 (2021-08-19)
喜欢
hsl($hue,$saturation,$lightness):通过色相(hue)、饱和度(saturation)和亮度(lightness)的值创建一个颜色;
sass -i
>> hsl(200,30%,60%) //通过h200,s30%,l60%创建一个颜色...
4年前 (2021-08-19)
喜欢
blue()
函数是用来获取某一个颜色值中 blue 的值
sass -i
>> blue(#f36)
102
...
4年前 (2021-08-19)
喜欢
Green()
用来获取某一个颜色值中 green 的值。同样拿 ”#f36“ 颜色为例:
sass -i
>> green(#f36)
51
...
4年前 (2021-08-19)
喜欢
Red() 函数
red() 函数非常简单,其主要用来获取一个颜色当中的红色值。假设有一个 #f36 的颜色,如果你想得到 #f36 中的 red 值是多少,这个时候使用 red() 函数就能很简单获取。
>> red(#f36)
255
得到的值是”255”。(注...
4年前 (2021-08-19)
喜欢
rgba()
rgba() 函数主要用来将一个颜色根据透明度转换成 rgba 颜色。
rgba($red,$green,$blue,$alpha) //将一个rgba颜色转译出来,和未转译的值一样
rgba($color,$alpha) //将一个Hex颜色转换成rgba颜色...
4年前 (2021-08-19)
喜欢
input::-webkit-input-placeholder {
color: rgba(0, 204, 254, 1);
}
input::-moz-input-placeholder {
color:rgba(0, 204, 254, 1);
...
4年前 (2021-08-19)
喜欢
第一种
.el-table--enable-row-hover .el-table__body tr:hover>td{
background-color: #c6cfdf !important;
}
第二种
.el-table__body tr:hover>t...
4年前 (2021-08-19)
喜欢