stylus
.line-height(@h){
height: @h
line-height: @h
}
---------------------------------------------------
@import "mixins.styl"
line-height(h){
height h
line-height h
}
---------------------------------------------------
@import "mixins.styl"
line-height(41px)
---------------------------------------------------------------------------------
npm install -g stylus
文件后缀: index.styl
stylus 自动编译
File - settings - Tools - file Watchers
点击 +
选择 stylus ,直接 ok 应用
---------------------------------------------------------------------------------
选择目标 ---- 添加入库 ---- 购物车添加进项目 ---- 下载到本地
UI会直接给 .eot .svg .ttf .woff .woff2 ---- 查看说明书使用 demo_index.html
将 iconfont.css 放到 项目的 css 文件夹中,引入 css 后直接使用就好 <link >
<i class="iconfont"></i>
<i class="iconfont"></i>
<svg class="icon" aria-hidden="true"></svg>
选择 svg 生成字体GrnerateSVG&More
修改
下载
保存 font 文件,引入 css 文件
---------------------------------------------------------------------------------
<header>
版芯固定 1190px / 1226px,两翼自适应
浮动不会超越上一个块级元素
padding 和 border 实现 导航距离分割线
原文:https://www.cnblogs.com/tianxiaxuange/p/10363973.html