久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

使用 webkit-overflow-scrolling 滾動時 iOS5 圖像消失:觸

iOS5 Images disappear when scrolling with webkit-overflow-scrolling: touch(使用 webkit-overflow-scrolling 滾動時 iOS5 圖像消失:觸摸)
本文介紹了使用 webkit-overflow-scrolling 滾動時 iOS5 圖像消失:觸摸的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

我之前一直在使用 iScroll 插件,但想放棄它以適應原生行為.

I had previously been using iScroll plugin but wanted to drop it for the native behaviour.

最初的實現是使用

webkit-overflow-scrolling: auto;

但是我將其更新為 ...

however I updated this to ...

webkit-overflow-scrolling: touch

.. 啟用觸摸滾動上的運動/慣性.

.. to enable the motion/inertia on the touch scroll.

這個問題是導航中包含的列表項在滾動時完全消失,只有在勢頭停止后才會返回.

The issue with this is the list items contained within the navigation disappear completely when scrolling, and only return once the momentum has come to a rest.

這方面的一個例子可以是在這里看到

An example of this can be seen here

推薦答案

我之前也遇到過同樣的問題,如果你需要使用定位元素嘗試添加 -webkit-transform: translateZ(0); 到元素或容器.此屬性通常會強制瀏覽器使用硬件加速,并且借助額外的功能,您的圖像很可能不會消失.無論如何,它對我有用.

I have had the same problem in the past, if you need to use positioned elements try adding -webkit-transform: translateZ(0); to the elements or the container. This property often forces the browser to use hardware acceleration and with the extra power your images will most likely not disappear. It worked for me anyway.

這里還有更多有用的東西:http://www.html5rocks.com/en/tutorials/speed/html5/

More useful stuff here too: http://www.html5rocks.com/en/tutorials/speed/html5/

這篇關于使用 webkit-overflow-scrolling 滾動時 iOS5 圖像消失:觸摸的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Using Instruments to test an iOS app without having source code to the application(在沒有應用程序源代碼的情況下使用 Instruments 測試 iOS 應用程序)
KIF: How to auto-run/stress test an iOS app to find the cause of a rare UI bug?(KIF:如何自動運行/壓力測試 iOS 應用程序以找出罕見 UI 錯誤的原因?)
Can#39;t change target membership visibility in Xcode 4.5(無法更改 Xcode 4.5 中的目標成員身份可見性)
UITableView: Handle cell selection in a mixed cell table view static and dynamic cells(UITableView:在混合單元格表視圖靜態和動態單元格中處理單元格選擇)
How to remove Address Bar in Safari in iOS?(如何在 iOS 中刪除 Safari 中的地址欄?)
iOS 5 SDK is gone after upgrade to Xcode 4.5(升級到 Xcode 4.5 后,iOS 5 SDK 消失了)
主站蜘蛛池模板: 国产精品视频偷伦精品视频 | 亚洲精品久久久蜜桃 | 国产免费a | 日韩欧美国产精品 | 国产视频二区 | 一区二区三区国产 | av网站免费 | 亚洲高清视频在线观看 | 精品国产一区探花在线观看 | av在线天堂网 | 日韩欧美在 | 日本网站免费在线观看 | 国产美女在线看 | 亚洲国产精品久久久久婷婷老年 | 国产激情毛片 | 亚洲色图第一页 | 久久久精品视频一区二区三区 | 99re热精品视频 | 国产欧美日韩一区二区三区 | 国产精品一区二区欧美黑人喷潮水 | 国产999精品久久久久久绿帽 | 亚洲免费视频在线观看 | 国产91丝袜在线播放 | 欧美日韩成人影院 | 欧洲尺码日本国产精品 | 中文字幕精品一区二区三区精品 | 欧美日韩精品一区二区天天拍 | 国产欧美日韩综合精品一区二区 | 成人高清在线视频 | 国产一区二区在线免费观看 | 亚洲一区二区免费 | 国产精品爱久久久久久久 | 久久久精 | 国产精品特级片 | 亚洲一区二区三区免费在线观看 | 欧美成人一区二区三区 | www.97国产| 91综合网| 免费视频一区二区三区在线观看 | 91精品久久久久久久久中文字幕 | 影音先锋成人资源 |