May 2013
2 posts
May 10th
May 3rd
April 2013
8 posts
Apr 28th
Apr 27th
Apr 23rd
Apr 19th
48,725 notes
Apr 19th
3 tags
Apr 13th
Apr 6th
3 notes
Apr 6th
3 notes
March 2013
3 posts
Clearfix →
This is really useful. /** * For modern browsers * 1. The space content is one way to avoid an Opera bug when the * contenteditable attribute is included anywhere else in the document. * Otherwise it causes space to appear at the top and bottom of elements * that are clearfixed. * 2. The use of `table` rather than `block` is only necessary if using * `:before` to...
Mar 13th
1 note
Mar 10th
Mar 2nd
February 2013
8 posts
Thought via Path
今天天气极好 – Read on Path.
Feb 27th
Feb 22nd
1 note
Feb 14th
4,374 notes
Feb 14th
161,413 notes
1 tag
WatchWatch
Feb 8th
1 note
Feb 5th
14,276 notes
Feb 4th
Feb 3rd
January 2013
4 posts
Jan 24th
1 tag
Jan 16th
Jan 12th
Jan 4th
December 2012
5 posts
Dec 30th
Dec 26th
Dec 21st
135 notes
Dec 6th
1,580 notes
4 tags
Dec 1st
4 notes
November 2012
1 post
火锅 (Created with Gifture)
Nov 3rd
October 2012
3 posts
Oct 22nd
378,699 notes
Oct 20th
1 note
Oct 1st
2 notes
September 2012
3 posts
Sep 14th
波光粼粼 (Created with Gifture)
Sep 14th
1 note
Sep 14th
July 2012
2 posts
不知道什么鱼 (Created with Gifture)
Jul 26th
Some things beginners might not know about Sublime... →
alainmeier: I’m a big fan of Sublime Text. As with many Mac programmers, I started on TextMate and then migrated over once Sublime Text 2 was released. When I started, however, there were a lot of things that I didn’t know about ST, so I’ve compiled a list of basic things that are excellent time savers.
Jul 26th
197 notes
June 2012
3 posts
Jun 19th
Jun 7th
1,354 notes
Jun 6th
May 2012
3 posts
May 31st
1,038 notes
1 tag
May 28th
1 note
1 tag
May 8th
65,274 notes
April 2012
1 post
Apr 29th
2,352 notes
December 2011
6 posts
1 tag
Dec 29th
2 tags
用margin负值做缩略图
图片需要一个父级元素,比如把图片放在一个段落<p>标签中。段落<p>作为图片的父级元素需要是浮动的或者有固定的宽度,否者自适应宽度的父级元素是不能用这种方法实现图片缩略的。 接下来把图片的上下左右四边的margin设成负值,除此之外,我们需要用到overflow:hidden这个属性,就这样,我们要做的事情完成了。 HTML <p class="crop"> <a href="#"><img src="img.jpg" alt="css template" /></a> </p> CSS .crop{ float:left; margin:.5em 10px .5em 0; overflow:hidden; /* this is important */ border:1px...
Dec 19th
2 notes
1 tag
WatchWatch
奔跑,為了跌到
Dec 10th
1 note
1 tag
Dec 9th
97 notes