2012-07-20 77 views
0

我在jQuery的移动文件上使用scrollview插件,并在iOS上很好地工作。但是,当我使用iframe时,不应用滚动y,并且其内容保持不变。如何在iframe上应用滚动条?谢谢iOS的jQuery的滚动视图插件不滚动Y的iframe

<div data-role="page" id="init" data-theme="a"> 

    <div data-role="header" id="head" data-position="fixed" data-tap-toggle="false"> 
    </div> 
    <div data-role="content" data-scroll="y" id="cont" data-theme="a" style="border:none;"> 
     <iframe data-scroll="y" src="http://www.abcd.com" style="border: 0px none;" height="100%" width="100%"> 
     </iframe> 
    </div> 
    <div id="id3"> 
    </div> 
</div> 

所有必要的jQuery的移动和滚动视图插件附加。

+0

请显示您的代码。 – hekomobile 2012-07-20 21:21:11

回答

0

请@Jaume试试这个,

$(function() { 
    $('#cont').scrollview({ 
     direction:'y' 
    }) 
}) 

否则,您需要包含jquery.mobile.scrollview.js文件。