Home > front end >  CSS in the rgba () function cannot be used in the var () function
CSS in the rgba () function cannot be used in the var () function

Time:01-11

Recently in the use of CSS var () function to encounter a problem, for example, I set up a custom attributes in JS - color, using var () to invoke it in your CSS, then the attribute value is set as the background color, at this time is normal display,


But if it is used with rgba () will be failure, unable to show translucent background,


Because CSS function cannot be nested function? How to solve this problem to realize the translucent background? Thank you very much!!!!!!
  • Related