jquery-mobile-iscrollview滚动条位置在phonegap android中不正确

时间:2013-05-20 09:49:25

标签: jquery-mobile cordova iscroll

我正在使用jquerymobile.1.3.1为我的phonegap安卓应用。我添加了jquery-mobile-iscrollview

但是屏幕中的滚动条位置错误。 我的HTML代码:

<div data-role="page" data-theme="g" id="mobile_page">    
    <div data-role="header" data-theme="g" data-position="fixed" data-tap-toggle="false">
       <img src="images/logo/logowhite.png" class="main_logo">
      <h3 class="page_heading">Select The Item</h3>
      <img src="images/header.png" class="header_right_btn header_home_btn">
      <div id="header_form">
            <div class="progressbar">
                <div class="progress active"></div>
                <div class="progress active"></div>
                <div class="progress"></div>
                <div class="progress"></div>
                <div class="progress"></div>
            </div><!-- progressbar end -->

            <div class="ui-grid-b top_form">
                <div class="ui-block-a">
                    <select data-role="none" class="form_select_top" style="border:none">
                        <option value="op">Option 1</option>
                    </select>                    
                </div>
                <div class="ui-block-b">
                    <select data-role="none" class="form_select_top">
                        <option value="op">Option 1</option>
                    </select>                    
                </div>
                <div class="ui-block-c">
                    <select data-role="none" class="form_select_top">
                        <option value="op">Option 1</option>
                    </select>                    
                </div>
            </div>          
      </div>
    </div><!--header end-->   

    <div data-role="content" data-iscroll="">        

        <ul class="mobile_list_step_two">
            <li>
                <div class="_imag"></div>
                <div class="_company"></div>
                <h2 class="name_header"></h2>
                <h3 class="name_sube_header"></h3>
                <h3 class="name_sube_header"></h3>
                <h1 class="_price"></h1>
                <div class="collapsible_step_two">
                    <div class="collapse_content_step_two">
                        <div class="ui-grid-a">
                            <div class="ui-block-a">
                                <button data-role="none" class="collapsecontent_btn">Whats Included ?</button>
                            </div>
                            <div class="ui-block-b" style="text-align:right;">
                                <button data-role="none" class="collapsecontent_btn">Information</button>
                            </div>                
                        </div>
                    </div>
                        <button data-role="none" class="collapse_btn_step_two"><img src="images/collapseopen.png" id="collapse_icon"></button>
                </div>                       
            </li>               
        </ul>

    </div><!--content end-->    
    <div data-role="footer" class="footer_style" data-position="fixed" data-tap-toggle="false">
        <div data-role="navbar" class="footer_style" data-grid="c">
        <ul>
            <li><a href="#" id="id_1" data-icon="custom"></a></li>
            <li><a href="#" id="id_2" data-icon="custom"></a></li>
            <li><a href="#" id="id_3" data-icon="custom"></a></li>
            <li><a href="#" id="id_4" data-icon="custom"></a></li>
        </ul>
        </div>
    </div>
</div><!--Page End-->

1 个答案:

答案 0 :(得分:2)

更新您当前版本的jQM和iScroll版本.. 但我不确定。 :-) 可能是你在当前的Js文件中做了一些改动。在Acutal案件中,它不会幸福! 因此,请将jQM设置设置为默认值(将当前jQM替换为默认jQM js)