05 2015 档案

摘要:无标题文档 11111 22222 33333 第二个的1111 第二 222 第二个33333... 阅读全文
posted @ 2015-05-29 10:34 surfaces 阅读(319) 评论(0) 推荐(0) 编辑
摘要:这个滑动条 淘宝 app上比较常见;滑动条 全部 男1装 女2装 鞋3子 ... 阅读全文
posted @ 2015-05-28 14:12 surfaces 阅读(941) 评论(0) 推荐(0) 编辑
摘要:rem两个比较好的框架 淘宝Flexible https://github.com/amfe/lib-flexible 使用Flexible实现手淘H5页面的终端适配 https://github.com/amfe/article/issues/17 adaptive https://github. 阅读全文
posted @ 2015-05-14 17:09 surfaces 阅读(1197) 评论(0) 推荐(0) 编辑
摘要:tap事件 tap 事件相当于 pc 浏览器中的 click 效果,虽然在触屏设备上 click 事件仍然可用,但是在很多设备上,click 会存在一些延迟,如果想要快速响应的 “click” 事件,需要借助 touch 事件来实现。 element.addeventlistener( 'touch 阅读全文
posted @ 2015-05-14 14:21 surfaces 阅读(637) 评论(0) 推荐(0) 编辑
摘要://第一个 Author: Alone //依赖jQuery 或者Zepto 第二个 作者未知(依赖jquery) 第三个 其他地方 阅读全文
posted @ 2015-05-14 14:10 surfaces 阅读(2546) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-05-14 13:53 surfaces 阅读(264) 评论(0) 推荐(0) 编辑
摘要:<script> var isIe = !-[1,]; // alert('ie9 之前'+isIe); var ie = 'ActiveXObject' in window; //alert('sadsd'+ie); var ie2 = !!('ActiveXObject' in window); 阅读全文
posted @ 2015-05-14 13:45 surfaces 阅读(883) 评论(0) 推荐(0) 编辑
摘要:使用iScroll时,input等不能输入内容的解决方法 <script> function allowFormsInIscroll(){ [].slice.call(document.querySelectorAll('input, select, button')).forEach(functi 阅读全文
posted @ 2015-05-14 11:26 surfaces 阅读(2998) 评论(0) 推荐(1) 编辑
摘要:参考写的类似的 pie 饼状图 效果如下 代码如下 阅读全文
posted @ 2015-05-14 09:25 surfaces 阅读(17829) 评论(1) 推荐(0) 编辑
摘要:简单的常见的操作;假设每个便签添加一个 属性 -webkit-animation-delay:0.1s 递增操作;;通过for循环添加 <ul id="uls"> <li style="background:red">0</li> <li>1</li> <li style="background:# 阅读全文
posted @ 2015-05-13 13:20 surfaces 阅读(2117) 评论(0) 推荐(0) 编辑
摘要:浏览器支持ie8+ <img src="img/blank.gif" alt="" data-echo="img/album-1.jpg"> <script> window.echo = (function (window, document) { 'use strict'; /* * Constr 阅读全文
posted @ 2015-05-12 15:06 surfaces 阅读(893) 评论(0) 推荐(0) 编辑
摘要:mousemove 拖拽操作 var count = 0; elem.onmousemove = function(){ count++; // 当计数器为偶数的时候不执行mousemove if( count % 2 0 ){ return; } // 实现拖拽功能的代码... }; 高频事件的简 阅读全文
posted @ 2015-05-12 14:19 surfaces 阅读(891) 评论(0) 推荐(0) 编辑
摘要:font-size:12px; line-height:22px; font-family:Arial,Helvetica,sans-serif; /*优化*/ font:12px/22px Arial,Helvetica,sans-serif; background-color:#eee; bac 阅读全文
posted @ 2015-05-12 13:06 surfaces 阅读(444) 评论(0) 推荐(0) 编辑
摘要:内联样式的获取 function getStyle(obj,attr){//简单的获取内联样式 return obj.currentStyle?obj.currentStyle[attr]:obj.getComputedStyle(obj,false)[attr]; }下面是比较完善的, ... 阅读全文
posted @ 2015-05-12 11:09 surfaces 阅读(829) 评论(0) 推荐(0) 编辑
摘要://预览地址: http://mall.3d414.com/suc/index.html 说明:电脑端通过操纵tabindex 键操作右侧信息栏目 <!doctype html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA- 阅读全文
posted @ 2015-05-11 17:35 surfaces 阅读(333) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示