jquery中的animate
时间:2010-09-26
来源:互联网
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript" src="jquery/jquery.js"></script>
<title>jquery自定义动画</title>
<style>
#win2{
position: absolute;
border: 2px solid red;
background-color: #EFEFEF;
line-height:90px;
font-size:12px;
z-index:1000;
width:300px;
height:100 px;
right:0;
left: 267px;
top: 137px;
}
</style>
<script language="javascript" type="text/javascript">
$(document).ready(function(){
//$('#win2').animate({width:"50%"},{duration:5000,easing:"swing"}); 这一句起作用
$('#win2').animate({height:"50%"},{duration:5000,easing:"swing"}); 但改成height之后就不起作用了
});
</script>
</head>
<body>
<div id="win2">xxxxx</div>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript" src="jquery/jquery.js"></script>
<title>jquery自定义动画</title>
<style>
#win2{
position: absolute;
border: 2px solid red;
background-color: #EFEFEF;
line-height:90px;
font-size:12px;
z-index:1000;
width:300px;
height:100 px;
right:0;
left: 267px;
top: 137px;
}
</style>
<script language="javascript" type="text/javascript">
$(document).ready(function(){
//$('#win2').animate({width:"50%"},{duration:5000,easing:"swing"}); 这一句起作用
$('#win2').animate({height:"50%"},{duration:5000,easing:"swing"}); 但改成height之后就不起作用了
});
</script>
</head>
<body>
<div id="win2">xxxxx</div>
</body>
</html>
作者: leibao 发布时间: 2010-09-26
学习jquery中 支持一下

作者: 抢街饭 发布时间: 2010-09-27



作者: school 发布时间: 2010-09-27
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28