jquery animate自定义动画

 2023-09-10 阅读 23 评论 0

摘要:动画 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Conte

动画

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link rel="stylesheet" href="style.css" type="text/css">
<style type="text/css">
.center
{
width
:960px;
margin
:0 auto;
border
:1px solid #333;
background-color
:#ccc;
}
</style>

<script src="jquery-1.4.4.min.js" language="javascript" type="text/javascript">
</script>
<script type="text/javascript">
function load()
{
// alert("test");
}
function div_con()
{
//$(".center").hide();
$(".center").animate({
width:
"50%"
},
1000
);
}
</script>
</head>

<body onload="load()">

<div class="center" onclick="div_con()">test</div>
</body>
</html>

  

jquery显示隐藏动画,转载于:https://www.cnblogs.com/wangkangluo1/archive/2011/07/19/2110585.html

版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。

原文链接:https://hbdhgg.com/2/38940.html

发表评论:

本站为非赢利网站,部分文章来源或改编自互联网及其他公众平台,主要目的在于分享信息,版权归原作者所有,内容仅供读者参考,如有侵权请联系我们删除!

Copyright © 2022 匯編語言學習筆記 Inc. 保留所有权利。

底部版权信息