首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CSS Flipper - iOS / Safari问题

CSS Flipper - iOS / Safari问题
EN

Stack Overflow用户
提问于 2017-01-04 00:06:37
回答 0查看 360关注 0票数 5

我有一个模拟向导的网页。在用户离开第二步转到第三步之后,我将像翻转卡片一样“翻转”面板。您可以在此Bootply中看到它的实际效果。代码如下所示:

代码语言:javascript
复制
<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中工作。任何帮助都是非常感谢的。

EN

回答

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/41447579

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档