In LESS, I used the following code to get the window height.
@winheight:`$(window).height()`
What I get is a number, but when I add px to have a block,
height: @winheight px;
It compiles with something like height: 910 px .
I tried to get the block after evaluating javascript. but I got the same result.
@winheight:`$(window).height()`px height: @winheight; ... height:910 px;
How can I get height:910px there (without a space between a number and a unit)?
EDIT:
As for the first four results, it creates a height:"910px" that doesn't display correctly.
javascript css less
tiran
source share