jquery 的可调整大小插件
即使助手选项已打开,该插件也会调整通过alsoResize选项提供的元素的大小。如何让它不这样做呢?
even though helper option is turned on, the plugin is resizing elements supplied via alsoResize option. how make it not do so?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是正确的行为...如果您不想调整其他元素的大小,只需将它们排除在
alsoResize
选项/选择器之外即可。helper
选项仅影响 primary 元素,使用alsoResize
选择的元素会立即调整大小,您必须编写自己的alsoResize
(它本身就是一个插件)以具有不同的行为。This is the correct behavior...if you don't want to resize other elements, just leave them out of the
alsoResize
option/selector.The
helper
option only affects the primary element, the ones selected withalsoResize
are immediately resized as you go, you'd have to write your ownalsoResize
(which it itself a plugin) to have different behavior.