Viven

8小时计划!

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

收先要在cmd中运行

npm install less less-loader --save

然后会在 moudules文件夹中生成less 和less-loader 

<style lang="less" rel="stylesheet/less">
#app{
  .tab{
    display: flex;
    width: 100%;
    height: 40px;
    line-height: 40px;
    .tab-item{
      flex: 1;
      text-align: center;
    }
  }
}
</style>

 

这样就可以

posted on 2017-03-10 23:08  Viven张  阅读(194)  评论(0编辑  收藏  举报