using javascript calculated values in less

前端 未结 7 1529
无人及你
无人及你 2020-12-18 00:01

In LESS I used following code to get the window\'s height.

@winheight:`$(window).height()`

What I\'m getting is a number, but when i add

7条回答
  •  生来不讨喜
    2020-12-18 00:10

    This might work depending on LESS which I do not know well.

    Reading the docs this is a possibility.

    @winheight:0px + `$(window).height()`
    

提交回复
热议问题