我有一个模拟向导的网页。在用户离开第二步转到第三步之后,我将像翻转卡片一样“翻转”面板。您可以在此Bootply中看到它的实际效果。代码如下所示:
<div class="container-fluid" style="background-color:#eee;">
<div class="container">
<div class="flip-container" style="width:200px;">
<div class="flipper">
<div class="front">
<div class="step-2-default" id="step2" style="overflow-x:hidden; padding:0.0rem 1.0rem;">
<label>Step 2</label>
<p>These are the details of the second step</p>
<button id="nextButton2">next</button>
</div>
<div class="step-1-default" id="step1">
<label>Step 1</label>
<p>These are the details of the first step</p>
<button id="nextButton1">next</button>
</div>
</div>
<div class="back">
<div id="step3">
<label>Step 3</label>
<p>Thank you for using this wizard</p>
</div>
</div>
</div>
</div>
</div>
</div>如果你加载Bootply,你会注意到步骤1和2是可见的。据我所知,问题出在height:auto属性上。我之所以使用它,是因为向导中每个步骤的内容大小都是动态的。
它在Chrome上运行得很好。但是,我不知道如何让它在iOS / Safari中工作。任何帮助都是非常感谢的。
https://stackoverflow.com/questions/41447579
复制相似问题