using javascript calculated values in less

前端 未结 7 1471
无人及你
无人及你 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:20

    What about this:

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

提交回复
热议问题