使用伪类定位段落的第二行

时间:2018-08-14 16:27:01

标签: html css pseudo-class

p::first-line{
color:red;
}
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>

此CSS选择器仅定位第一行,如果我要定位第二行或第三行并更改其颜色,该怎么办

0 个答案:

没有答案