JQUERY Wizard Step Plugin:如何动态调整每个步骤的内容高度?

时间:2015-05-23 13:59:29

标签: javascript jquery html css jquery-steps

我已经从How to set a dynamic height on content for each step?实施了解决方案,效果很好。但是,当您在步骤中动态添加元素时,这不起作用。例如,通过按钮动态地在表中添加行,高度不会自动调整。我想在点击按钮时动态调整高度。有关如何做到这一点的任何建议?

2 个答案:

答案 0 :(得分:0)

如果您使用this example,则它没有tx.executeSql('SELECT ItemNumber,Item_Name,sum(Qunatity) as Qunatity1 ,sum(FOCQty) as FOCQty1\ from toCSV5\ Where ItemNumber=?',[this.UpdateItemNumber],SumSuccess,errorCB); wizardcontent类,而是使用元素body,因此您的示例将是

headerTag: "h3",    bodyTag: "fieldset",

答案 1 :(得分:0)

jquery.steps.css档案中,
只需删除position: absolute

.wizard > .content > .body
{
    float: left;
    /*position: absolute;*/ <== remove or comment this line
    width: 95%;
    height: 95%;
    padding: 2.5%;
}