javascript - 我正在尝试应用位置粘性,但它仅适用于 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>
解决方案
推荐阅读
- java - 如果不打算保留该字段(@Transient 等),是否可以在 JPA 实体中拥有一个公共最终实例字段?
- javascript - 如何从自定义反应钩子中丰富数据
- php - 如何在递归中增加深度变量?它一直在重置
- javascript - 如何制作水平打印的for循环
- html - 在 CSS 中键入动画不起作用(在动画开始之前显示文本)
- vb.net - NX中的SKETCH(1:1B)是什么意思?
- azure-aks - 并发 AzureML REST 请求失败,服务请求过多(过载)
- python - 如何在 python 中导入我自己的包?
- c# - 将 C# 结构元组转换为 byte[]
- wowza - 如何为 wowza 服务器创建 httpprovider