show()的方向

<!DOCTYPE html>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<script class="jquery library" src="jquery-1.7.2.min.js" type="text/javascript"></script>

<title>

RunJS 演示代码

</title>

<style>

div{

border:1px solid black;

width: 100px;

height:100px;
background: #000;

display:none;

float:right;

}

</style>

<script>

$(function(){
$('.b').click(function(){
$("#div1").show(500);
})

//$("#div1").show(500);

});

</script>

</head>

<body>
<p class="b">22222222222</p>

<div id="div1">

11

</div>

</body>

</html>

posted @ 2016-09-08 10:38  chuxinxingdong  阅读(180)  评论(0编辑  收藏  举报