本帖最后由 finemi 于 2014-12-09 16:49:39 编辑

解决方案 »

  1.   

    检查下对话框有没有设置其他定位的样式<script type="text/javascript" src="/jquery/jquery.js"></script>
    <div id="a" style="background:red;position: absolute;"></div>
    <input type="button" id="cs" value="测试"/>
    <script>
    $('#cs').click(function(){
    var w=200;h=200,t=100,l=100;
    $('#a').css({width:0,height:0,top:t+h/2,left:l+w/2}).animate({top:t,left:l,width:w,height:h},100)})
    </script>