调整智能向导的内容(js 库)

Luc*_*ano 0 javascript height smart-wizard

我想以动态方式更改(步骤 div 的)高度,但它无法以我尝试过的任何方式工作。我需要这个,因为我有一个表,我用 ajax 插入数据并重新加载,这个表在数据表中。我不希望滚动条出现

我已经尝试更改 css 中的高度,将 height:auto; 但它没有用,滚动条总是出现;这是我使用的库智能向导, https://github.com/mstratman/jQuery-Smart-Wizard

按照代码来实例化智能向导:

<script>
     $('#wizard').smartWizard({
      // Properties
        selected: 0,  // Selected Step, 0 = first step   
        keyNavigation: true, // Enable/Disable key navigation(left and right 
        keys are used if enabled)
        enableAllSteps: false,  // Enable/Disable all steps on first load
        transitionEffect: 'none', // Effect on navigation, 
      none/fade/slide/slideleft
        contentURL:null, // specifying content url enables ajax content loading
        contentURLData:null, // override ajax query parameters
        contentCache:true, // cache step contents, if false content is fetched 
      always from ajax url
        cycleSteps: false, // cycle step navigation
        enableFinishButton: false, // makes finish button enabled always
       hideButtonsOnDisabled: false, // when the previous/next/finish buttons are disabled, hide them instead
        errorSteps:[],    // array of step numbers to highlighting as error steps
        labelNext:'Continuar', // label for Next button
        labelPrevious:'Voltar', // label for Previous button
        labelFinish:'Finalizar',  // label for Finish button        
        noForwardJumping:false,
        ajaxType: 'POST',
    // Events
        onLeaveStep: leaveAStepCallback, // triggers when leaving a step
        onShowStep: null,  // triggers when showing a step
        onFinish: null,  // triggers when Finish button is clicked  
        buttonOrder: ['prev', 'next','finish']  // button order, to hide a button remove it from the list
       });
</script>
Run Code Online (Sandbox Code Playgroud)

cle*_*dre 5

您是否尝试过添加autoAdjustHeight: falseSmartWizard 初始化?

问题链接在这里