我有一个本地的iOS应用程序,使用webview来显示网页内容。 我的应用程序中有一个固定的标题,具有以下属性:
#header {
height: 60px;
background-color: @mainColor;
color: #ffffff;
padding: 10px;
text-align: center;
position: fixed;
width: 100%;
z-index: 1;
}
在升级到iOS 11之前,一切都正常工作。现在当我上下滚动页面时,标题栏会在滚动过程中消失,在滚动完成后又重新显示。
在Xcode 8中也可以重现此问题。
top: 0px; left: 0px;
会有帮助? - Manuel OttoWKWebView
而不是UIWebView
或WebView
。 - iPatel