ons-scroller 和 ons-button 内的 Phonegap

Phonegap within ons-scroller and ons-button

我最近在 iOS 设备上使用温泉 UI 系统 运行ning 开发 phonegap。 我遇到了一个问题,我注意到如果您使用“”,其中包含的任何内容都无法按下,而 iPad 或 iPhone 中的 运行。这是我的代码如下:

<ons-template id="test.html" style="display:none;">
    <ons-page>
      <ons-toolbar style="background-color:#FF9500;">
        <div class="left"><ons-back-button>Back</ons-back-button></div>
        <div class="center">Main AK</div>
      </ons-toolbar>
        <div class="center">
             <ons-scroller>

               <ons-button modifier="food_folder" onclick="">Type A</ons-button>
               <button class="button button--cta" style=" width:100px; z-index:1000;"  >Test</button> -->

            </ons-scroller>
      </div> 

        <ons-tabbar>
            <ons-button icon="ion-ios-checkmark" modifier="navi_button" onclick="">SAVE</ons-button>
            <ons-button icon="ion-ios-checkmark" modifier="chk_button" onclick="">
                <div><span class="notification">1</span></div>
            Latte
            </ons-button>
        </ons-tabbar>
    </ons-page>
</ons-template>

当我 运行 在浏览器中工作正常。就在我部署到 iOS 设备时,ons-scroller 中的按钮无法按下。它似乎被另一层覆盖在上面。如果我删除 ons-scroller 然后按钮工作正常。只是因为我可能有很多按钮适合那个区域,我需要它在 iPhone 中特别是可滚动的 运行。

有人遇到同样的问题吗?如何解决这个问题呢?谢谢

我找到了解决问题的方法:但不确定这是否是执行此操作的标准方法:首先:我将 <ons-tabbar> 重新定位在 <ons-toolbar> 之后,然后才开始<ons-scroller>, 第二:我将 css 更改为 <ons-tabbar> remove z-index:2.. 然后它工作正常。如果有人有不同的方法来解决这个问题,请在此处更新。 谢谢