using javascript calculated values in less

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

    Take .css(height) instead of .height() - this returns the value + unit.

提交回复
热议问题