会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
每天都要进步一点点
善始者实繁,克终者盖寡。 技术栈:angular + ionic + vue + mint-ui + react-native + teaset + h5plus + mui + nodejs + webpack + gulp + ES6 + vux + typescript2 + weex + weex-ui + 微信小程序 + react + ant-design + ant-design-mobile + material-ui + nervjs + taro + taro-ui + spring boot
博客园
首页
新随笔
联系
订阅
管理
2017年3月16日
移动端项目中 @2x 图 和 @3x 图 的使用
摘要: 移动端开发过程中,因为手机的dpr(设备像素比不同),我们需要根据dpr来修改图标的大小: 1.通过mixin,动态修改图标的背景图片。通过@media (媒体查询),判断设备的dpr。 2.css样式中调用 bg-image 方法 移动端 border 的 1px 问题: 1.为了方便通用,使用
阅读全文
posted @ 2017-03-16 00:07 每天都要进步一点点
阅读(1423)
评论(1)
推荐(1)
公告