LessCSS - IE gradient filter with variables and lighten

后端 未结 2 1168
没有蜡笔的小新
没有蜡笔的小新 2021-01-18 23:39

I need to have an IE gradient filter in Less CSS with a variable and lighten. Is this possible?

#whatever {
    filter:progid:DXImageTransform.Microsoft.gra         


        
2条回答
  •  盖世英雄少女心
    2021-01-19 00:11

    You can insert variables into string and "print them" in process of concatenation.Empty string need for get string as rezult of concatenation. All variables will be insert into string

    @filterStr: "progid:DXImageTransform.Microsoft.gradient( startColorstr='@{upper}', endColorstr='@{bottom})',GradientType=1 )";
    @emptyStr: "";
    filter:e(@filterStr+@emptyStr);
    

提交回复
热议问题