css - 在 iOS 上使用“top”属性定位相对元素失败
问题描述
top
在 iOS 上对相对定位的元素使用CSS 属性会失败。我使用此属性来模拟按钮的按下。为什么会失败,如何在 iOS 上达到同样的效果?
<button>
button
</button>
...
button {
position: relative;
padding: 30px 80px;
}
button:active {
top: 6px;
}
解决方案
推荐阅读
- sql - 如何获取SQL中日期最高的行集的行?
- arrays - 在 VBA 中动态声明数组
- java - ReleaseByteArrayElements 需要更多时间
- python - 如何以恒定帧速率处理视频帧?
- jquery - 在网站上动态点击 Youtube 订阅按钮
- excel - 如何在多个表中查找值并在值存在时更新单元格?
- python - 具有公共变量的分布式优化
- python - NetworkX - 有没有办法根据节点权重来缩放图中节点的位置?
- android - 出现错误:访问被拒绝在某些设备上查找属性“vendor.camera.aux.packagelist”
- ios - 启动新屏幕时使用 Swift 的 Xcode 中的线程错误