2015-12-17 29 views
-1

我采用了棱角分明的Java脚本,其中我要保持画面静止的上半部分,而在较低的一部分,我需要像滑动页面的某些功能离子框架使得Android移动应用程序。意思是当我只滑动下部时需要滑动。上下滚动上部也应该固定,下部需要滚动。我尝试使用<ion-slide>标记进行滑动,并在我的页面中包含引导程序和jquery库以便进行正确的移动视图和滚动,但是滚动部分无法正常工作,页面上半部分中包含的背景图像未自动调整其大小。任何人都可以帮助我吗?如何使滚动离子网页

谢谢...

+0

请添加代码,你尝试过什么。 –

+0

对不起,但我在一个组织工作,如果分享我的代码,它可能会导致泄露机密数据。 –

+0

你必须至少在有问题的地方编写演示代码。 –

回答

0

尝试用这种方式

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:background="@drawable/bg" 
android:orientation="vertical" > 
<ScrollView 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" > 

    <LinearLayout 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:layout_marginTop="5dp" 
     android:background="@android:color/transparent" 
     android:orientation="vertical" > 

     <WebView 
      android:id="@+id/webRootOperations" 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:visibility="gone" 
      android:background="@android:color/transparent" /> 

</LinearLayout> 
</ScrollView> 
</LinearLayout>