<!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=utf-8" />
<title>无标题文档</title>
<script src="jquery.js"></script>
<script type="text/javascript">
$(function(){
$("p").css("background","red")
})
</script>
</head>
<body>
<h1>实验element</h1>
<p class="intro">这是个带class的p1</p>
<p>p标签2</p>
<p>p标签3</p>
<div id="choose">
这是个div
<ul>
<li>li1</li>
<li>li2</li>
<li>li3</li>
</ul>
</div>
</body>
</html>
效果图: