1.下载less.js,地址:
https://cdnjs.cloudflare.com/ajax/libs/less.js/3.11.1/less.min.js
2.新建css.less文件
3.引入less,js文件
<link href="__CSS__/home.less" type="text/less" rel="stylesheet/less" /> <script src="__JS__/less.js"></script>
home.less文件夹 的css 按照less语法写就ok,如: