html

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>jquery</title>
		<script type="text/javascript" src="js/jquery-3.0.0.min.js"></script>
		<style>
			div {
				width:50px;
				height:50px ;
				margin: 20px;
				background-color:blueviolet ;
			}
		</style>
	</head>
	<body>
		<script>
		for (var i=0;i<5;i++) {
//创建div $("<div>").appendTo(document.body); } $("div").click(function(){ $(this).hide(3000,function(){ $(this).remove(); }); }) </script> </body> </html>

  效果:

jQuery效果-隐藏与显示 小方块的移除

 

 

2017-09-21 12:29:16 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-03-15
  • 2022-12-23
  • 2022-12-23
  • 2022-02-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-03-15
  • 2022-12-23
  • 2022-12-23
  • 2021-07-24
  • 2021-10-30
  • 2021-06-12
相关资源
相似解决方案