使IFRAME在iOS设备上支持滚动的解决方法

刘德胜 500次浏览

摘要:<divclass="layout-main-body"style="overflow-y:auto;-webkit-overflow-scrolling:touch;"> <iframeclass="body-iframe"name="if...

    <div class="layout-main-body" style="overflow-y:auto;-webkit-overflow-scrolling: touch;">
        <iframe class="body-iframe" name="iframe0" width="100%" height="99%" src="default" frameborder="0" data-id="default" seamless="">
        </iframe>
    </div>
加上这个样式就行了:
style="overflow-y:auto;-webkit-overflow-scrolling: touch;"