<body> <h3>演示css3中的伪元选择器</h3> <p>这段文字的首行将会被改变颜色。</p> </body>
<style> p:first-line { color:#ff0000; font-variant:small-caps; } </style>