第4章:文档结构与选择器

4.3 伪类与伪元素

4.3.2 伪元素(Pseudo-Elements)

:first-letter

伪元素:first-letter匹配一段文字的第一个中文字或者字母。

The first few words of an article in The Economist.

"类似于英文的引号"这类的标点符号出现在首字母前,也会包含在内。

67 million dollars is a lot of money.

“中文”的标点符号则在不同浏览器有不同的处理方式。

返回代码目录