我已经实现了 How to set a dynamic height on content for each step? 中的解决方案效果很好。但是,当您在步骤中动态添加元素时,这不起作用。例如,通过按钮在表格中动态添加一行,高度不会自动调整。我正在考虑在单击按钮时动态调整高度。关于如何执行此操作的任何建议?
最佳答案
如果您使用 this example它没有类 wizard
content
或 body
而是使用元素 headerTag: "h3", bodyTag: "fieldset",
所以你的例子就是
$("#btnAdd").click(function () {
$("#example-advanced-form h3>fieldset").height(500);
});
关于javascript - JQUERY 向导步骤插件 : How to dynamically adjust the height of the content for each Step?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30413569/