Is this possible in p tag without using span or anything new in html tag?

I want paragraph text should look like this can anyone help to achieve this in p tag without using any other span or html tag. First line is big and other line is small ?

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod 
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim 
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip 
ex ea commodo consequat. Duis aute irure dolor in reprehenderit 
in voluptate velit esse cillum dolore fugiat nulla pariatur. 
Excepteur sint occaecat cupidatat 

可能是这个 - p {white-space:pre;}


我想你想要的是:first-line伪元素。

p:first-line { font-size: 150%; }

You can use white-space:pre;

pre

This value prevents user agents from collapsing sequences of white space. Lines are only broken at preserved newline characters.

Source


p {
    white-space:pre;
}

Demo

To add a bigger font-size to the first line use p:first-line : demo

:first-line

selector::first-line{ preperties }
链接地址: http://www.djcxy.com/p/75988.html

上一篇: 如何在前面的文本块末尾放置文本?

下一篇: 这是可能的p标签没有使用跨度或任何新的HTML标签?