Blog Archives

美的灯饰上线

这段时间忙碌了很多事情,经历过工作的愤怒,尝试过敢情的痛苦,从来不敢说自己的经历有多丰富,但也会不禁的沉湎在记忆的长河,时而年幼的可笑,时而年少的疯狂,但仍没有现在的精彩。 “文字能表达一种思想,即使你的思想很丰富,但缺少表达的渲染也就不会让这些思想保留下来” 一直都在计划这每天能写点东西,沉湎的文学的魅力,尽管我更多的还是喜欢小说类的作品,但不能因此剥夺对文学的喜爱。 2011年9月2日,“美的灯饰”正是上线,开始做百度推广,可以说是自从6月31日离职到现在唯一作为自己的事业的事情,尽管目前来看前景渺茫,我更会珍惜这次经历,让这么美好的记录伴随着我的成长,在这里留下记忆的痕迹。 回忆一下当时的情景: “现在百度推广已经生效了吗?我怎么没有一点感觉啊。” “你还想有啥感觉,能吃啊” 就这样,我很没有感觉的就开始走走上了这条分岔路口。 感慨:我们经常听别人说,万事开头难,自己也很清楚这个道理,但事情只有自己亲自经历的时候才能切身的体会到,“万事”开头怎么个难发。 鼓励:虽然是不熟悉的领域,但相信自己,珍惜经历! 这段时间在家的时候,就如刚开始“大墩哥”说的那,回家以后就不受控制的生活规律就开始松散下来了,后来每次想停歇下来,不想工作学习的时候,就用这句话来提醒自己:I leave uncultivated today, was precisely yesterday perishes tomorrow which… Continue reading »

css属性zoom的使用

相信很多开发者写css的时候使用过zoom属性,以前也模仿使用过,那时候刚开始接触前端开发,抄过来一段代码就知道能解决什么问题,实现了什么功能,但是对于里面使用的各个属性并不是很了解,也没有很深入的去研究过。 这种现在伴随着我成长了很长一段时间,然后才意识到这其实是一种很大的弊端,很不利于对于技术的研究。反复告诫自己,在研究代码,研究程序的时候尽量要做到彻底弄清楚实现的原理! 今天在看alipay一位前段大虾的博客的时候,又碰到了关于这方面的问题,于是乎,本着不能草草了事,知其然须知其所以然的态度,在网上搜索了一下相关的内容,有很多大致类似的解释和说明,下面摘录修改了一段感觉比较能明确解释其功能的文字: zoom : normal | number 语法取值 normal : 默认值。使用对象的实际尺寸 number : 百分数 | 无符号浮点实数。浮点实数值为1.0或百分数为100%时相当于此属性的 normal 值 使用说明… Continue reading »

那些曾经自以为是的

曾经在自己的小圈子里能解决部分浏览器的兼容性问题,一度以为自己已经很厉害了,能搞定很多他们解决不到的问题。 曾经看到过css bug table,总是没能细细的体会其中涵义。 曾经做兼容性,更多的是把各个浏览器一遍一遍的去调整,没有自习的研究为什么会出现不同。 曾经会刻意的模仿别的网站,使用一些别人不知道的hack,或许以为那是很cool的事情。 曾经以为了解到双倍边距会洋洋自得,因为很多人不知道这问题。 曾经总是很浅薄,很敷衍的对待问题。 就再刚才,翻看reader里面的旧文章,重读Alipay UED 《打败 IE 的葵花宝典:CSS Bug Table》,感触颇深。 温习到那么多得兼容问题时,惊愕了。有多少东西以前注意过,解决过?有多少东西解决过就忘记了? 自习想想这些问题吧。 向前的兼容要掌握,向后的兼容要研究! 链接:打败 IE… Continue reading »

关于页面字体的选择

虽然我对于字体的研究是一片空白,但也能经常性的感觉到国内页面中的字体一直没有国外网站字体表现形式好。 偶然的今天咋DBA看到介绍统计几个大网站的字体使用情况,被总结如下: 结论1:Arial,Helvetica,San-serif 这个组合适配性是最好的,也是最保险的. 可选:Helvetica Neue . 结论2::用了宋体的,都比较烂 … 中文网站要想页面视觉稍微好一点,直接去掉 CSS 中的宋体. Updated: 对于个人站点,字体可以尽情发挥。 Updated 2: 新浪的同学解释说,之所以用宋体,是因为”宋体的半角字符是等宽字体(1/2个全角),长度的标题不会因出现英文或数字而折行”。估计是历史原因吧,相信这个问题总是有解的,看怎么解决罢了。 看到文章下面的评论,褒贬不一。 之前在制作网站的时候使用过一次动态加载字体,刚开始很天真的以为我加载以后就可以使用的。但经过使用,中文字体光是下载都已经够把用户的耐心磨掉了。中文字体太多,每种字体都有几十兆的,中国目前的网速谁又心思去坐那等待下载一个字体。 说到这里,有点羡慕那些做英文网站的Designers,即使随用国内的网速也可以来加载一两个字体使用!… Continue reading »

simulate placeholder with jQuery

I just want to use the html5′s form api, but it is not available in ie. This is just a polyfill, you can use it with the Modernizr library.

quick tips:jquery background color animation

There is one jquery color animations plugin in the official website of jquery, which is the weakness of jquery and… Continue reading »

jQuery Deferred tutorial

I have been reading about the jquery Deferred object for one whole day, i don’t think i can use with it very well , but now i will summary what i learned, if you are knowing it better and more usage, please tell me.

In my option, the deferred object can do one thing and do it very well: provides flexible ways to provide multiple callbacks, and these callbacks can be invoked regardless of whether the original callback dispatch has already occurred.

Three status of it: unresolved, resolved, rejected of the actions.

what i learned from one html5 web source code

I think html5 is powerful,but i had not learned befor,when i saw one article about tablet made in html5, i… Continue reading »

htaccess RewriteRule and RewriteCond examples

I had wrote Simple php guestbook based on MVC last day, and want to refine the mvc framework and make… Continue reading »

Simple php guestbook based on MVC

Last time, i wrote the do-with-your-own-php-mvc-framework and i found it is very useful.Last week we had a test of making a php guestbook, and i do that with it.
What you can do with the guestbook or the tiny MVC?
1.The core is to leave a message and manage the messages.
2.The administrator can turn on or turn off the message checker, with that on the guest’s message must be checked before displaying it in the main page.
3.You can open the guestbook or close it in your will.
4.The management can be done friendly with ajax or some effect with jquery.
5.You can modify the guestbook’s name and notice and copyright in the admin panel freely.

Here is the screenshot,about 15 files and images with a .htaccess file, my final goal is to establish the framework and with that to expand it to a blog system, and i got much of it.

Simple php guestbook based on MVC structure

WordPress SEO fine-tune by Meta SEO Pack from Poradnik Webmastera