奇怪的奥运照片

Posted: August 23rd, 2008 | Author: | Filed under: rumors | Tags: , , | No Comments »

Guardian上还有更多,说weird,更象英国式的幽默。挑了最美的和最搞笑的,剩下的自个儿去看吧:Weird Olympics photos

BTW,Guardian的网站可以称得上文字排版的一个典范了。


The New Singularity

Posted: August 9th, 2008 | Author: | Filed under: design | Tags: , , | No Comments »

Pretty inspiring slides by Mark Rolston from Frog.


老三卷

Posted: July 23rd, 2008 | Author: | Filed under: photography | Tags: | No Comments »

tokyo

说实话,胶片拍起来也不敢乱按,冲起来又麻烦,但是每次洗出来,总会给我一种“想拍照”的惊喜心情,不论摄影技巧或者结果好坏,自娱自乐的目的是完全达到了,这是以前的DSLR不能带给我的。新传的三卷,时间跨度至少有半年了,天热了就更不愿意背着块铁出门了。

mini

P.S. mini倒是越来越成熟讨人喜欢了。


二十四节气

Posted: May 28th, 2008 | Author: | Filed under: design | Tags: , | No Comments »

生活总是在轮回的,就像季节交替,在这个异常烦躁的夏夜,看这样的设计让我得以片刻安宁。


uncertainty

Posted: April 23rd, 2008 | Author: | Filed under: self | No Comments »

我和我自己保持着一种距离,我并不了解我自己。并非刻意躲闪,只是一切无常。


I love my Leica

Posted: March 12th, 2008 | Author: | Filed under: photography, self | Tags: , , | No Comments »

CL拍到第五卷,总算觉得控制曝光有点数了,小小机器的颜色和层次都让我喜欢得很。


爱泡,我是你爹!

Posted: March 12th, 2008 | Author: | Filed under: design | Tags: , | No Comments »

kissfmfather.jpg

危地马拉一家叫 Garcia Robles 的广告公司为当地电台设计的广告。不禁莞尔。


CSS Hack 笔记

Posted: January 17th, 2008 | Author: | Filed under: technology | Tags: | No Comments »

做个笔记,原文在这里

CSS Hack是在标准CSS没办法兼容各浏览器显示效果时才会用上的补救方法,在各浏览器厂商解析CSS没有达成一致前,我们只能用这样的方法来完成这样的任务.

我进行前端开发的时候,测试用的浏览器大致有: IE7, IE6, Opera9(文章撰写时版本为9.25 8825), Safari3(文章撰写时版本为3.0.4 523.15), Firefox2(文章撰写时版本为2.0.0.11).

在正常的 selector { property:value; } 的基础上常会根据具体情况为相同元素使用Hack以达到浏览器间统一.

IE系列:

  • selector { +property:value; } 在属性名前加上加号”+”,这个Hack只有IE系列可以识别.
  • selector { *property:value; } 在属性名前加上星号”*”,这个Hack只有IE系列可以识别.
  • selector { _property:value; } 在属性名前加上下划线”_”,这个Hack只有IE系列 (除IE7外) 识别.
  • * html selector{ property:value; } 在选择器上运用继承法 * html selector, 这个Hack只有IE系列 (除IE7外) 可以识别.
  • html/**/ >body selector { property:value; } 在选择器上运用继承法 html/**/ >body selector ,这个Hack只有IE系列 (除IE7外) 可以识别.
  • selector { property/**/:value; } 在属性名和冒号”:”之间加入注释,屏蔽IE6用.
  • selector/**/ { property/**/:value; } 在选择器和花括号”{“之间以及在属性名和冒号”:”之间加入注释,屏蔽IE5和IE6用 (不屏蔽IE5.5) .
  • select/**/ { property:value; } 在选择器和花括号”{“之间加入注释,屏蔽IE5用.
  • *+html selector { property:value !important; } 在选择器上运用继承法 *+html selector 再加上 !important, 这个Hack只有IE7可以识别.

Firefox:

  • *:lang(lang) selector { property:value !important; } 用伪类lang(语言)再加上!important进行定义的话,目前只有Firefox可以识别.

Safari:

  • selector:empty { property:value !important; } 用伪类empty再加上!important进行定义的话,目前只有Safari可以识别.

Opera:

  • @media all and (min-width: 0px){ selector { property:value; } } 利用特殊继承法进行定义的话,目前只有Opera可以识别.

以上的Hack并不完整,欢迎大家补充.

对Hack的运用,最普遍的是CSS盒模型Hack,清除浮动Hack.

CSS盒模型在IE5.X上是有严重解析错误的.这个Hack针对IE5.X:
selctor { width:IE5.X宽度; voice-family :”\”}\”"; voice-family:inherit; width:正确宽度; }

清除浮动Hack,相信这个定义用的人很多:
selector:after { content:”.”; display:block; height:0; clear:both; visibility:hidden; }

另外还有很多很多CSS Hack的运用,一一列举的话可能能写成一本书了…想到再添加吧

csshacks.gif