【问题标题】:Error in jQuery to animate the #hexpand divjQuery中的错误动画#hexpand div
【发布时间】:2015-05-28 08:44:07
【问题描述】:

我想在三秒内将其从 121 x 121 像素扩展到 151 x 151 像素。

我这样做了,但这不起作用。

#hexpand $( ".animate" ) #hexpand(
{
    width: "151px",
    height: "151px",
},
5000 );

【问题讨论】:

    标签: php jquery ajax performance jquery-ui


    【解决方案1】:

    这里是动画的使用方法

    jQuery('#hexpand').animate({width:151,height:151},400);
    

    【讨论】:

    • 不要忘记接受这个答案,这样它可以帮助别人
    【解决方案2】:

    试试这个:

    $("#hexpand").animate({
        width: 150,
        height: 150
    }, 5000);
    

    【讨论】:

      猜你喜欢
      • 2012-03-02
      • 1970-01-01
      • 1970-01-01
      • 2015-08-01
      • 1970-01-01
      • 2011-02-21
      • 2012-06-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多