<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
p:first-child {
font-weight: bolder;
}
li:first-child{ text-transform:uppercase;}
-->
</style>
</head>
<!-- first-child 改变第一个元素-->
<body>
<div>
<p>这是一个段落</p>
<ul>
<li>banana</li>
<li><strong>apple</strong></li>
<li>g</li>
</ul>
<p>这<em>又是</em>一个段落</p>
</div>
</body>
</html>