返回jquer自定......登陆

jquer自定义动画学习

文昌2018-12-18 21:03:50183

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>jquer自定义动画学习</title>
		<script src="jquery/jquery-3.3.1.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			div{width: 200px;height: 200px;background: blue; position: absolute;}
		</style>
	</head>
	<body>
		<script type="text/javascript">
			$(document).ready(function(){
				$('.but1').click(function(){
					$('p').animate({fontSize:'40px'})
				})
				$('.but2').click(function(){
					$('div').animate({left:'600px'},1000)
				})
			})
		</script>
		<button class="but1">点击字体放大</button>
		<p>大楼附近ask里的数据库阿里山扩大飞机啊克里斯蒂</p>
		<button class="but2">点击移动DIV</button>
		<div></div>
	</body>
</html>

很炫酷,突然感觉很有趣,不再那么枯燥了^_^


最新手记推荐

• 用composer安装thinkphp框架的步骤• 省市区接口说明• 用thinkphp,后台新增栏目• 管理员添加编辑删除• 管理员添加编辑删除

全部回复(0)我要回复

暂无评论~
  • 取消回复发送