using javascript calculated values in less

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

    give this code and see what is you get it.

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

提交回复
热议问题