Can I fetch the value of a non-standard CSS property via Javascript?

前端 未结 6 708
傲寒
傲寒 2020-11-28 12:11

I am trying to read a custom (non-standard) CSS property, set in a stylesheet (not the inline style attribute) and get its value. Take this CSS for example:

         


        
6条回答
  •  不知归路
    2020-11-28 12:40

    Maybe you can try with LESS. It's The Dynamic Stylesheet language and you can create non-standard css attributes, commands that will compile later.

提交回复
热议问题