<!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>css(name,value)方法</title>
</head>
<script language="javascript" src="jquery-1.4.2.min.js"></script>
<script type="text/javascript">
$(function(){
$("p").mouseover(function(){
$(this).css("color","red");
});
$("p").mouseout(function(){
$(this).css("color","black");
});
});
</script>
<body>
<p>把鼠标放上来试试?</p>
<p>或者再移动出去?</p>
</body>
</html>