2013-07-09 1 views
0

이 내 HTML의 일부입니다 PhoenGap 프로젝트에서 스크롤바없이 iPhone5 화면을 채우는 방법은 무엇입니까?

<body> 
    <div id="intro" class="page"> 
     <div id="slider"> 
      <div> 
       <img src="img/image1.png"> 
      </div> 
      <div> 
       <img src="img/image2.png"> 
      </div> 
      <div> 
       <img src="img/image3.png"> 
      </div> 
      <div> 
       <img src="img/image4.png"> 
      </div> 
     </div> 
    </div> 
<body> 

내가
body{height:100%} 
#intro{height:100%} 

config.xml

<preference name="DisallowOverscroll" value="true" /> 

에서

을 설정하지만이 수직 스크롤은 여전히 ​​그것이 조금 아래로 스크롤 할 수 있습니다. 스크롤 한 거리의 길이가 상단의 iPhone 상태 막대 높이의 두 배인 것으로 보입니다.

아이디어가 있으십니까?

업데이트 : 상태 표시 줄을 [[UIApplication sharedApplication] setStatusBarHidden:YES];으로 표시하지만 도움이되지 않습니다.

답변

0

액세스 기본보기 및 설정 오버 플로우 속성은

.view 
{ 
overflow-y:hidden !important; 
} 
0

내가보기 프레임을 재설정하고 그것을 작동 :

CGRect screenBounds = [[UIScreen mainScreen] bounds]; 
self.viewController.view.frame = CGRectMake(0,20,320,screenBounds.size.height); 
관련 문제