- 博客(8)
- 资源 (2)
- 收藏
- 关注
转载 scrollTop
scrolltop = (((t = document.documentElement) || (t = document.body.parentNode)) && typeof t.scrollTop == ‘number’ ? t : document.body).scrollTop
2012-11-25 10:57:50
293
原创 Javascript实现阳历转阴历
/*! 阳历转阴历 kael 2012-05-30 */ var Calendar = function (date) { this.date = date ? date : new Date(); this.cDate = { toString : function () { return this.tg + this.dz + '年(' + this.sx + ')' + th
2012-06-01 15:52:58
629
转载 [笔记]关于jquery冒泡和默认事件处理
有时我们不希望冒泡或默认的事件发生,这样就需要一些jQuery的的方法阻止冒泡和默认的事件了。可以通过以下三种方法做到不同程度的阻止。 A:return false --->In event handler ,prevents default behavior and event bubbing 。 return false 在事件的处理中,可以阻止默认事件和冒泡事件。 B:event.pr
2012-04-01 09:15:34
352
转载 Event.keycode
keycode 0 = keycode 1 = keycode 2 = keycode 3 = keycode 4 = keycode 5 = keycode 6 = keycode 7 = keycode 8 = BackSpace BackSpace keycode 9 = Tab Tab keycode 10 = keycode 11 = ke
2011-12-21 13:40:43
332
原创 (笔记)jquery 获取页面高宽
$(window).height(); //浏览器当前窗口可视区域高度 $(document).height(); //浏览器当前窗口文档的高度 $(document.body).height();//浏览器当前窗口文档body的高度 $(document.body).outerHeight(true);//浏览器当前窗口文档body的总高度 包括border padding margin $
2011-12-19 11:13:16
775
原创 (笔记)IE6不缓存背景问题
//<![CDATA[ try { document.execCommand("BackgroundImageCache", false, true); } catch(e) {} //]]>
2011-11-05 21:42:34
252
原创 jQuery处理页面图片等比缩放
说明: 页面中经常需要将未知大小的图片展示在有限的空间里, 如果直接指定图片的width和height值, 就有可能造成图片走样, 这段代码就是为解决这个问题设计. html代码结构: 样式: a{width:300px;height:300px;background:#fff;border:1px solid #666;display:inline-block} /* 这里需
2011-11-05 13:49:05
910
转载 常用的终端命令
常用的终端命令 由:lingyired于2011-10-04 17:05:30发布 (原创文章,转载留名) 一、文件目录类 1.建立目录:mkdir 目录名 2.删除空目录:rmdir 目录名 3.无条件删除子目录: rm -rf 目录名 4.改变当前目录:cd 目录名 (进入用户home目录:cd ~;进入上一级目录:cd -) 5.查看自己所在目录:p
2011-10-20 22:50:19
412
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人