需要增加高度和;jquery同时显示两个div的宽度

需要增加高度和;jquery同时显示两个div的宽度,jquery,Jquery,hi尝试通过类似jquery的方式同时增加两个div的高度和宽度 $("#dialog .ui-dialog").animate({ height: $content.outerHeight(), width: $content.outerWidth() }, 1000, function () { $("#dialog").removeClass("BusyStyles"); $content.fadeIn('slow');

hi尝试通过类似jquery的方式同时增加两个div的高度和宽度

$("#dialog .ui-dialog").animate({ height: $content.outerHeight(), width: $content.outerWidth() }, 1000,
         function () {
             $("#dialog").removeClass("BusyStyles");
             $content.fadeIn('slow'); 
         });

它不起作用。所以,请告诉我如何通过动画功能同时而不是一个接一个地增加两个div的大小$(“#dialog.ui dialog”)在这里,我必须根据类名给出一个div id和另一个div id,因为我的情况就是这样。谢谢

在两个选择器之间放置一个逗号,如下所示:

$("#dialog, .ui-dialog").animate({
    height: $content.outerHeight(),
    width: $content.outerWidth() },
    1000,
    function () {
        $("#dialog").removeClass("BusyStyles");
        $content.fadeIn('slow'); 
    }
});

我希望有帮助

在两个选择器之间放置逗号,如下所示:

$("#dialog, .ui-dialog").animate({
    height: $content.outerHeight(),
    width: $content.outerWidth() },
    1000,
    function () {
        $("#dialog").removeClass("BusyStyles");
        $content.fadeIn('slow'); 
    }
});
我希望有帮助