gpt4 book ai didi

css - IOS 5 上的边界半径会减慢触摸事件

转载 作者:太空宇宙 更新时间:2023-11-03 19:12:42 25 4
gpt4 key购买 nike

我正在为 iPhone 和 iPad 开发 HTML5 应用程序。它广泛使用触摸事件。在最近升级到 iOS 5 的 iPhone 上,如果我在我的 CSS 中包含一个 border-radius 值,那么触摸事件会比我删除 border-radius 线慢几秒。很奇怪,我知道。

.item {
background-color:none;
padding:1px;
color:#234;
border: 1px white dotted;
cursor: default;
text-align:middle;
border-radius:15px;
}

除了不使用 border-radius 之外,还有其他人遇到过这个问题并找到了解决方法吗?在升级到 iOS 5 之前,该应用程序运行良好。 iPad 的速度也较慢,但并不那么明显——可能是因为处理器速度更快。

最佳答案

使用 Common CSS Border Library而是为了避免性能下降

关于css - IOS 5 上的边界半径会减慢触摸事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7797874/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com