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.
这是一个测试。这是一个测试。这是一个测试。这是一个测试。这是一个测试。这是一个测试。这是一个测试。
推荐阅读
-
【WEB基础】HTML & CSS 基础入门(3)段落及文本
-
CSS 美化段落文本之首字下沉
-
关于网页路径的疑惑_html/css_WEB-ITnose
-
Codeforces Round #156 (Div. 2)-A. Greg's Workout_html/css_WEB-ITnose
-
html 关于ul标签的_html/css_WEB-ITnose
-
background-size 设置背景图片的大小_html/css_WEB-ITnose
-
multiple backgrounds 多重背景_html/css_WEB-ITnose
-
建站新人_html/css_WEB-ITnose
-
折线图怎么做啊?急求!_html/css_WEB-ITnose
-
Codeforces Round #107 (Div. 2)-A. Soft Drinking_html/css_WEB-ITnose