<!DOCTYPE html>
<html>
<head>
<style>
p::first-line {
color: #ff0000;
font-variant: small-caps;
}
</style>
</head>
<body>
<p>您可以使用 ::first-line 伪元素为文本的第一行添加特殊效果。 一些更多的文字。 甚至更多,更多,更多,更多,更多,更多,更多,更多,更多,更多,更多。</p>
</body>
</html>