0
在iOS系統中8,我有以下的UIWebVIew
在網頁代碼,溢出:在UIWebView的滾動不工作中的iOS 8
<div id="outer">
<div id="middle">
<div id="inner"></div>
</div>
</div>
下面CSS,
html {
height: 100%;
}
body {
height: 100%;
margin: 0;
}
#outer {
overflow: scroll;
}
#middle {
width: 160%;
height: 100px;
overflow: auto;
}
#inner {
background: red;
width: 80%;
height: 100%;
float: left;
clear: both;
overflow: auto;
}
在iOS系統7,這可以在Web視圖中提供橫向滾動div。但在iOS 8中,div是而不是橫向滾動。
任何想法?我也試過overflow: auto
,沒有成功。