jquery的基本使用;为了方便可链接到百度提供的压缩版jquery库;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>jquery demo1 </title>
<script src="https://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script>
<style>
.divcss1{width:150px;height:50px;border:2px solid #F00}
</style>
<script>
$(document).ready(function(){
$("p").click(function(){
$(this).hide();
});
});
</script>
</head>
<body>
<div class="divcss1">
<p>click me, hide me</p>
</div>
</body>
</html>
div中有一个p元素;点击p元素后隐藏该p元素;