2018年10月30日

移动端苹果手机:图片没有加载完成前,白色边框线是怎么来的

摘要: 各位看官,留意到图片左上角的“07”了吗? 我的H5在苹果手机上 ,图片做了懒加载,图片没有显示前,一直有可恶的白色线框。然而我设置css border: none;,却没有去掉。 最后删掉alt属性的值才让白色线框去掉,感谢眼见的设计同事看到左上角的“07”,让我删掉,之后发现白色线框也没有了。 阅读全文

posted @ 2018-10-30 14:19 鲲跃北溟 阅读(780) 评论(0) 推荐(0) 编辑

2018年10月18日

问题:Swiper父容器隐藏时实例化组件,组件滑动失效

摘要: 解决办法:初始化组件时,配置 observe true、observeParents true。 observe参数 启动动态检查器(OB/观众/观看者),当改变swiper的样式(例如隐藏/显示)或者修改swiper的子元素时,自动初始化swiper。 observeParents参数 将obse 阅读全文

posted @ 2018-10-18 15:54 鲲跃北溟 阅读(1053) 评论(0) 推荐(0) 编辑

图片预加载

摘要: 先绑定Image onload事件,然后再给src赋值。这样load事件会正常触发。 阅读全文

posted @ 2018-10-18 14:42 鲲跃北溟 阅读(105) 评论(0) 推荐(0) 编辑

前端资源库CDN加速

摘要: 国内 七牛 http://staticfile.org/ 国外 cdnjs https://cdnjs.com/ 阅读全文

posted @ 2018-10-18 11:55 鲲跃北溟 阅读(119) 评论(0) 推荐(0) 编辑

bower 安装依赖提示 EINVRES Request to https://bower.herokuapp.com/packages/xxx failed with 502

摘要: 出错提示EINVRES Request to https://bower.herokuapp.com/packages/chai failed with 502 访问 https://bower.herokuapp.com/ 页面提示This Bower version is deprecated. 阅读全文

posted @ 2018-10-18 11:05 鲲跃北溟 阅读(1245) 评论(0) 推荐(0) 编辑

2018年10月11日

H5序列帧播放

摘要: 从http://bluestreeter.adidas.com.cn/index.html这个H5上扒下来的代码 阅读全文

posted @ 2018-10-11 11:32 鲲跃北溟 阅读(694) 评论(2) 推荐(0) 编辑

转载:从git仓库中删除不必要的文件

摘要: 可能有.idea等非项目文件混进去了 将.idea目录加入ignore清单: $ echo '.idea' >> .gitignore 将.idea目录加入ignore清单: $ echo '.idea' >> .gitignore 从git中删除idea: $ git rm —cached -r 阅读全文

posted @ 2018-10-11 11:16 鲲跃北溟 阅读(119) 评论(0) 推荐(0) 编辑

导航