目前项目中用到的都是通过less来开发,然后这里需要用到的就是将base放到各自项目里面。

然后再直接import进来:@:import url('_base.less');

具体如下:

/* 初始化CSS */
body,p,ul,ol,li,img,h1,h2,h3,h4,h5,h6,form,fieldset,legend,select,input{margin:0; padding:0;}
body{background:#F1F1F1;color:#333333;text-align:left;font:14px/1.5 tahoma,arial,'Microsoft YaHei', "Hiragino Sans GB",SimSun, sans-serif;}
ul,ol,li{list-style:none;}
select,input{vertical-align:middle; font-size:14px; font-family: Tahoma, Helvetica, Arial, 'Microsoft YaHei', SimSun, sans-serif;}
img{border:0;}
p{text-indent:2em;text-align:left;}
a,a:link,a:visited{color:#333333; text-decoration:none;}
a:hover{color:#BB3543; text-decoration:underline;}
.clearfix:after,.clearfix-after{content:'\0020'; display:block; clear:both; height:0;}
.clearfix{zoom:1;}
.clearFloat{ clear:both;height:0;line-height:0;font-size:0; overflow:hidden; }
以上文章来自:黄卉 , https://huanghui8030.github.io/css/base.html