- 博客(12)
- 收藏
- 关注
模拟jquery动画方法实现
[code="html"]test jQuery.fn.extend({ /** * 自定义动画方法 */ myAnimate:function(opt,duration,easing,callback){ if(!opt || typeof opt!=='object') return; //修正参数 if(...
2014-01-16 19:59:33
111
原创 margin负值-垂直列表消除边框
[code="html"]test body,ul,li{margin:0;padding:0;} ul,li{list-style:none;} #test{ margin:20px; width:390px; background:#F4F8FC; border-rad...
2013-12-28 22:09:15
184
原创 margin负值-水平列表消除边框
[code="html"]test body,ul,li{ padding:0; margin:0;} a,a:link,a:visited,a:hover,a:active{ font: 12px/1.333 微软雅黑, tahoma, arial, 宋体, sans-serif; text-decoration:none; color:b...
2013-12-28 21:37:43
208
原创 margin负值-产品列表
[code="html"]test body,ul,li{ padding:0; margin:0;} ul,li{ list-style:none;} #test{ width:320px; height:210px; background:#CCC; } #test ...
2013-12-28 21:08:51
123
原创 选项卡tab实现2
[code="html"]test :hover{} /*for ie7*/ html,body,ul,li{ margin:0; padding:0px; } ul,li{ list-style:none; } #wrap{ margin:10px; width:500px; border:1px ...
2013-12-28 01:29:32
93
原创 选项卡tab实现
[code="html"]test :hover{} /*for ie7*/ html,body,ul,li{ margin:0; padding:0px; } ul,li{ list-style:none; } #wrap{ margin:10px; width:500px; border:1px ...
2013-12-28 00:25:51
134
原创 自定义事件的绑定与触发实现!
[code="html"] var eventWrap={}; var eventIdKey='eventId'+new Date().getTime(); var uuid=0; function bind($el,eName,func){ if($el && eName && func){ var eId=$el.attr(event...
2013-12-18 20:27:46
301
模拟jQuery.Deferred实现!
[code="js"]var _Deferred=function(){ var callbacks=[],fired; var method={ done:function(func){ callbacks.push(func); if(fired){ method.resolveWith(fired[0],fired[1]); } r...
2013-12-18 20:07:56
170
原创 excanvas.js
// Copyright 2006 Google Inc.//// Licensed under the Apache License, Version 2.0 (the "License");// you may not use this file except in compliance with the License.// You may obtain a copy of ...
2013-04-12 14:24:06
667
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人