在iframe外层包一层div,添加如下样式:
style="-webkit-overflow-scrolling:touch;overflow:auto;"
代码如下:
<div style="100%;-webkit-overflow-scrolling:touch;overflow:auto;"><iframe name="main" id="main" src="../demo.html" width="100%" height="100%" frameborder="0" vspace="0" scrolling="yes" ></iframe></div>