生活就像打碟

对于文件上传,都会用到 input file <input type=”file” name=”file” id=”J_GetFile”> 那如何获得上传的文件呢,已上传图片举例 KISSY.use(‘dom,event’,function(S,D,E){ E.on(“#J_GetFile”,’valuechange’,function(e){ var filelist=this.files; if(filelist.length>0){ var file=filelist[0], reader=new FileReader(); E.on(reader,’load’,function(){ alert(this.result) }) reader.readAsDataURL(file); } }); }); 可以通过

Read more...

§751 · 四月 11, 2012 · web技术 · (No comments) ·


最近在上班午休的时候都会看点东西,主要是觉得时间真心少,如何保证时间的最大利用率而同时让自己不会感到有压力感?现在的方式就是提高工作效率同时利用间隙看点东西。这样不会让我有太大的疲惫感… 下面是看村上春树的一篇演讲稿的翻译,摘录了些觉得比较好的几段: ‘若要在高耸的坚牆与以卵击石的鸡蛋之间作选择,我永远会选择站在鸡蛋那一边。’ ‘我们每个人或多或少都是一颗鸡蛋。我们都是独一无二,装在脆弱容器理的灵魂’ ‘我们都是人类,超越国籍、种族和宗教,都只是一个面对名为体制的坚实高牆的一枚脆弱鸡蛋。不论从任何角度来看,我们都毫无胜机。高牆太高、太坚硬,太冰冷。唯一胜过它的可能性只有来自我们将灵魂结为一体,全心相信每个人的独特和不可取代性所产生的温暖。‘ 原文地址http://blogs.myoops.org/lucifer.php/2009/02/25/alwaysstandontheeggside

Read more...

§708 · 三月 22, 2012 · 文学 · (No comments) ·


近来看的东西多了,把之前放在一边的东西也重新看起来,也开始决定写写书评,做做视频剪辑。一方面是为了提高自己的表达能力,理清思路,另一方面也为了记录。 《Rework》是微博上看到有人推荐然后看得,

Read more...

§704 · 三月 19, 2012 · 态度 · (No comments) ·


移动产品越来越多,一种移动端产品已无法满足这个市场,比如我们得问iphone设计一款,得为ipad设计移动,而他们又有不同的分辨率。那如何解决这个问题,保证即能满足移动市场的需求,又不不需要投入的开发量过多。——响应式设计就是一个比较好的解决方案。 什么是响应式设计:Responsive Web design is not only about adjustable screen resolutions and automatically resizable images, but rather about a whole new way of thinking about design. 这句话很好的描述了响应式设计 以下指示对响应式设计的前端相关的解决方案 1、media query: ipad: iphone4: 横竖屏(对ipad有效): @media screen and (orientation: landscape){} @media screen and (orientation: portrait) {} 横竖屏(iphone) @media screen and (max-width: 320px){} @media screen and (max-width: 321px){} [...]

Read more...

§669 · 三月 7, 2012 · 设计 · (No comments) ·


1、无论锦绣还是抹布都会化为旧日时光,而时光会消逝。 2、她明白,灵魂有多么嫉妒肉体。 3、看一个女人的三明治做得好不好,你就能判断出她人品的好坏。 4、自然界的万事万物都是善恶争斗的标志。 5、万物倒塌又被重建,唯建造者再度欢乐。 6、你说不出来那是什么,并不代表那就不是了。 7、同时根据期待和环境来辨认事物的。如果你在一个特殊的地点,就会期待目睹特殊的事物。但面对他们无法理解的事物时,最有可能的情况是,她何大多数人的反应一样。惊慌。 8、绝对价值,相对价值。 9、我把他们所认为的事实真相翻来覆去的组合搭配,尽可能的安慰自己。 10、 11、 最近在想问题主要是同性恋,还有就是我自己的哲学理想是什么。我相信每个人都有他的哲学思想,只是说他有没确定他的哲学思想是什么。——信仰。 现在终于体会到那些有信仰的人,他们都已找到自己的哲学理论,无论你是信佛还是信基督等,都是值得我赞赏的。还有就是近来发现很多人是les,然后想了想觉得人其实都是双性恋,只是在不同的环境下,他们的做了不同的选择。

Read more...

§633 · 三月 7, 2012 · 文学 · (No comments) ·


rel=”apple-touch-icon-precomposed” :http://www.nelling0o0.com/wp-content/uploads/2012/03/indextb.html rel=”apple-touch-icon” :http://www.nelling0o0.com/wp-content/uploads/2012/03/indextb1.html 左侧是apple-touch-icon-precomposed ,右侧是apple-touch-icon 原图地址 看图就知道啦~~~~ apple-touch-icon上面会有层阴影

Read more...

§597 · 三月 6, 2012 · web技术 · (No comments) ·


<!doctype html> <html> <head> <meta charset=”utf-8″ /> <title>Sample page</title> <meta content=”width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;” name=”viewport” /> //控制视图区,及滚动条的出现 <meta content=”yes” name=”apple-mobile-web-app-capable” /> //离线处理 <meta content=”black” name=”apple-mobile-web-app-status-bar-style” /> //状态栏隐藏 一般指浏览器输入框那块 <meta content=”telephone=no” name=”format-detection” /> //控制浏览器对电话号码的自动识别 <meta content=”false” id=”twcClient” name=”twcClient” /> //判断是否在native环境 <link href=”" rel=”apple-touch-icon-precomposed” /> //主屏图标,还可以根据不同的分辨率进行图标的控制 //*<link rel=”apple-touch-icon” //*href=”touch-icon-iphone.png” />  //*<link rel=”apple-touch-icon” //*sizes=”72×72″ href=”touch-icon-ipad.png” /> //*<link rel=”apple-touch-icon” [...]

Read more...

§598 · 三月 6, 2012 · web技术 · (No comments) ·


button自适应问题:width:auto;overflow:visible; IE6、IE7及IE8兼容模式下,list-style的大小不随li的属性“font-size”改变。

Read more...

§590 · 三月 5, 2012 · web技术 · (No comments) ·


Read more...

§586 · 三月 1, 2012 · web技术 · (No comments) ·


http://www.nczonline.net/blog/2009/05/05/http-cookies-explained/

Read more...

§584 · 三月 1, 2012 · web技术 · (No comments) ·