引入文件
<
script
type
=
"text/javascript"
src
=
"less.js"
></
script
>
样式文件
<
link
rel
=
"stylesheet/less"
type
=
"text/css"
href
=
"xxx.less"
media
=
"screen"
/>
使用
@w241
:
241
px
;
@h100
:
100
px
;
@h200
:
200
px
;
.item-image
{
width
:
@w241
;
height
:
@h200;
}