我有一个仿真向导的网页。当用户离开第二步进入第三步时,我会像翻转卡片一样“翻转”面板。你可以在这个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 中工作。任何帮助将不胜感激。