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;

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>

原文地址:https://www.cnblogs.com/whyuyan/p/5852123.html