Lydiafly

Coder,Like JS

导航

2012年3月13日 #

[收藏贴]CSS Reset(忘记出处了)

摘要: /* CSS Reset */body,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{margin:0;padding:0;}body{line-height:1.5;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var,optgroup{font-style:normal;}h1,h2,h3,h4,h5,h6{font-size:100%; 阅读全文

posted @ 2012-03-13 11:15 lydiafly 阅读(169) 评论(0) 推荐(0) 编辑

[原创]一个js函数重载功能———续篇

摘要: ;;;void function(window, undefined){ var $ = { now:(new Date()).getTime(), type2string:{}, type:function(s){ return s == null ? 'empty' : ($.type2string[Array.prototype.toString.call(s)] || 'object'); }, switch:function(){ var args = Array.... 阅读全文

posted @ 2012-03-13 10:52 lydiafly 阅读(249) 评论(0) 推荐(0) 编辑