css怎么实现首字母下沉结果
发布时间:11/01 来源:未知 浏览:
关键词:
css实现首字母下沉结果的办法:可以通过运用first-letter伪类选中器来实现,如【.contain p:first-letter{}】。first-letter伪类选中器用来指定元素首先个字母的样式。
可以通过运用css的first-letter伪类选中器来实现首字母下沉结果。
(学习视频分享:css视频教程)
相干介绍:
:first-letter选中器用来指定元素首先个字母的样式。
HTML代码:
Document This is a test article. This is a test article.
This is a test article. This is a test article.
这是一个测试
实现结果: