首页 > 解决方案 > 我正在尝试应用位置粘性,但它仅适用于 Iphone

问题描述

我在 Iphone 中使用 positio sticky 时遇到问题。它在android,windows上完美运行。但是在iphone上就不行了。它只是固定在页面的bootom,下面是代码和代码的结构

.button-sticky {
  position: -webkit-sticky;
  position: -moz-sticky;
  position: -o-sticky;
  position: -ms-sticky;
  position: sticky;
  bottom: 10px;
  min-width: 40%;
  z-index: 100;
  transform: translate3d(0,0,0);
  &::before {
    display: block;
  }
}
<div class="container">
  <div class="wrapper>
  </div>
   <ion-button
    class="ion-margin-top vaga-interna-botao-sticky"
    size="large"
  >
    <ng-container >
      <i class="fas fa-check"></i>
      <span>I want to sign up</span>
    </ng-container>
  </ion-button>
</div>

标签: javascriptcssangulariphone

解决方案


推荐阅读