我所遇到的狀況是,使用 mui 的 選項卡 + 下拉刷新 功能時,其中有2個頁面是嵌入了別的網站的頁面,而別個幾個是經過 ajax 加載本網站的數據。而後 在其中嵌入 iframe 後,在 iphone 的狀況下,iframe 的頁面內容不能滾動,只顯示第一屏內容。web
<div class="mui-scroll-wrapper" style="-webkit-overflow-scrolling: touch;overflow-y: scroll;"><!--數字--> <iframe src="http://******"></iframe> </div>
解決問題是添加了 :ajax
style="-webkit-overflow-scrolling: touch;overflow-y: scroll;"
我所遇到的問題經過在 iframe 的 父盒子添加 上面的樣式,已經解決問題了。