有没有办法在jQuery UI中设置多个alsoResizes?
$('.selector').resizable({ alsoResize: '.other' });我想设置几个其他元素来调整大小,而不仅仅是一个。官方文档什么也没说。
发布于 2010-03-21 00:12:35
试一试
$('.selector').resizable({ alsoResize: '.other,.another,.andmanymore' });
发布于 2015-04-08 19:31:58
如果你有对象引用,那么你可以像这样使用:
$(el).resizable(
{
alsoResize: [ el.children[0], el.children[1] ]
});发布于 2017-07-06 01:01:21
您可以传入字符串数组,如下所示:
$('.selector').resizable({ alsoResize: [
'.other',
'.and-another',
'#and-one-more'
]});这些字符串应该表示选择器。您还可以通过class或id调整大小。
https://stackoverflow.com/questions/2483676
复制相似问题