五年工作经验
腾讯搬过砖,堆过码
擅长页面重构,酷爱自动化
积极热情,直言高调
喜欢科技与人文碰撞的一切
设计思路的理解和还原
页面模块化制作的预演
devicePixelRatio = 物理像素 / dips
常见@1x,@2x,@3x
@font-face {
font-family: 'iconfont';
src:url('fonts/iconfont.eot?-lbb3wi');
src:url('fonts/iconfont.eot?#iefix-lbb3wi') format('embedded-opentype'),
url('fonts/iconfont.woff?-lbb3wi') format('woff'),
url('fonts/iconfont.ttf?-lbb3wi') format('truetype'),
url('fonts/iconfont.svg?-lbb3wi#iconfont') format('svg');
font-weight: normal;font-style: normal;
}
[class^="icon-"], [class*=" icon-"] {
font-family: 'iconfont';speak: none;
font-style: normal;font-weight: normal;font-variant: normal;text-transform: none;line-height: 1;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
// IE8+
.icon-heart:before {
content: "\e801";
}
/* IE6-7, text use
<span cass=”icon-”>ࠁ</span>
*/var gulp = require('gulp');
var gulpif = require('gulp-if');
var sprite = require('css-sprite').stream;
// generate sprite.png and _sprite.less
gulp.task('sprite', function () {
return gulp.src('./sprite/*.png')
.pipe(sprite({
name: 'sprite',
style: '_sprite.less',
retina: true,
processor: 'less'
}))
.pipe(gulpif('*.png', gulp.dest('./dist/'), gulp.dest('./dist/')))
});
@import '_sprite'; // the generated style file (_sprite.less)
// camera icon (camera.png in src directory)
.icon-camera {
.sprite(@camera);
}
// cart icon (cart.png in src directory)
.icon-cart {
.sprite(@cart);
}图片的前世今生
切图的心法招数
切图的奇门遁甲