2
    i have used nested frames, 

    <!DOCTYPE html>
    <html>
    <head>


    </head>


    <frameset rows="200px,500px">

    <frame src="topBar.html" > <!-- top frame -->
    <frameset cols="30%,70%">
        <frame src="leftBar.php" noresize /> <!-- left frame-->

       <frame src="rightBar.php" name="rightBar"  id="rightBar" frameborder="yes"  style="overflow:scroll"/> <!-- left frame-->  <!-- right frame-->

     </frameset>
     </frameset>

    </html>


the rightBar.php is

<!DOCTYPE html> 
<html>
<head>
<meta charset="utf-8">
<title>jQuery Mobile Web App</title>
<link href="jquery.mobile-1.0a3.min.css" rel="stylesheet" type="text/css"/>
<link href="style/jquery.mobile.scrollview.css" rel="stylesheet" type="text/css"/>
<script src="jquery-1.5.min.js" type="text/javascript"></script>
<script src="jquery.mobile-1.0a3.min.js" type="text/javascript"></script>
<script src="js/jquery.mobile.scrollview.js" type="text/javascript"></script>

<!-- This reference to phonegap.js will allow for code hints as long as the current site has been configured as a mobile application. 
     To configure the site as a mobile application, go to Site -> Mobile Applications -> Configure Application Framework... -->
<script src="/phonegap.js" type="text/javascript"></script>
<script>
$(document).ready(function()
{
    $('#page').scroll();

    var data = 'cat=drinks' ;
    $.ajax
        (

            {
                url:'rgh.php',
                type: "POST",
                data:data,

                success: function (data)
                {       

                $("#loadContent").html(data);

                }
            }
        )

        $(".closeBtn").click(function(){            
            $(".QTPopup").css('display', 'none');
        })
});
</script>
</head> 
<body> 



<div data-role="page" id="page" data-rel="dialog"  data-transition="pop">

    <div data-role="content" data-position="fixed"> 

        <ul data-role="listview" id="loadContent"  data-filter="true"  data-scroll="true">



        </ul>       
    </div>

</div>


</body>
</html>

当用户单击 leftBar.php 的选项时,它反映在 rightBar.php 上并动态显示内容,浏览器仅显示 rightBar 框架的滚动条,这在 PC 上很好,但在 Android 设备上不显示,它显示整个滚动条到 webview,我只需要 rightBar 框架在 Android webview 中显示滚动条吗?那么有人可以帮助我吗?

4

0 回答 0