xxxxxxxxxx
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>使用CSS伪元素与css类示例</title>
<style>
p.article::first-letter {
color: #00ff00;
font-size: xx-large;
}
</style>
</head>
<body>
<p class="article">This a sample article.</p>
<p>This a normal paragraph.</p>
</body>
</html>