+ -
当前位置:首页 → 问答吧 → jquery中的animate

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>

作者: leibao   发布时间: 2010-09-26

学习jquery中 支持一下

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

    

作者: school   发布时间: 2010-09-27