问题
all
I want to calculate the height of the page ,and in my test.less
@clientHeight:`$(window).height()`;
when I use the @clientHeight
,as jquery return just a number,I need to plus the unit like px
So,I tried these ways:
1)
div{height: @clientHeight+px;
It came out :height: 705 px;
(Note that there's a space between them)
2)
@clientHeight:`$(window).height()+'px'`
It came out :height: "705px";