A trackback:首字下沉效果。

August 27th, 2004   Filed under Blog on blog

@ 2004-08-27 15:56


桑林志里提到:常在一些书刊上看到首字下沉的效果,印象非常好。今天查了查,发现可以用css的一个Pseudo-elements(赝元素?)first-letter 来获得这种效果的。这里介绍一下,我在WordPress中的使用方法。类似办法地可以在任何网页里实现。首先我在style sheet里加上:

#fp:first-letter {

font-size : 300%;

font-weight : bold;

float : left;

margin-right: 3px;

}

这样,已经可以通过给相应段落加 >p id=”fp”< tag 来得到首字下沉效果。

Tags:

No Response

Come on buddy, give some response.

Leave a Reply

Subscribe

This Blog

Hi, I'm Chern. This is my personal blog. I'm currently working for a business consulting firm in Shanghai. I don't quite love my work though and is always seeking a way to escape. But I don't know wher to escape. Pity!

I'm not a coder nor a designer, however, I believe the quote "Code is poem" and weight algorithm and UI the same importance. I like Googel services and hope one day that Google can provide all the services I need. more abt. me...

Recent Comments

Twitter @chn_ping

Posting tweet...


My Douban