欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  web前端

css段落首字母下沉_html/css_WEB-ITnose

程序员文章站 2022-05-15 20:00:21
...
摘要:

  段落首字母放大是指放大段落开头的字母或者汉字,主要使用了css的first-letter伪类选择器。

单行放大:

  在第一行内放大,效果如下:

Document

This is a test article. This is a test article.

This is a test article. This is a test article.

这是一个测试

注意:first-letter支持IE7+,first-line支持IE8+

多行放大:

  效果如下:

Document

This is a test article. This is a test article.This is a test article. This is a test article.This is a test article. This is a test article.

这是一个测试。这是一个测试。这是一个测试。这是一个测试。这是一个测试。这是一个测试。这是一个测试。