2011-01-10 3 views
3

HTML5는 seamless IFRAME을 지원합니다. 이것은 HTML의 머리말과 꼬리말을 포함하는 방법입니다. 나는 아마 HTML5 기반이라고 생각했던 안드로이드 (2.2) 브라우저에서 이것을 시도했지만 작동하지 않았다. HTML 파일을 Android에 포함시키는 방법이 있습니까?안드로이드 브라우저에서 매끄러운 IFRAMES를 보여줄 수 있습니까?

필자가 시도한 샘플은 index.html, header.html 및 footer.html로 구성되었습니다. index.html을, 그것은했다 : HEADER.html 현재에서

<!DOCTYPE HTML> 
<iframe seamless="seamless" src="header.html" sandbox="allow-top-navigation allow-scripts allow-forms allow-same-origin"></iframe> 

My content goes here 

<iframe seamless="seamless" src="footer.html" sandbox="allow-top-navigation allow-scripts allow-forms allow-same-origin"></iframe> 

, 그것은했다 : footer.html를에서

<html> 
<head> 
<link rel="stylesheet" href="android.css" type="text/css" /> 
<title>Test App</title> 
</head> 
<body> 
<div class="home page"> 
    <h1>Test App</h1> 
    <div class="home content"> 

, 그것은했다 :

</div><!-- .home .content --> 
    <div class="home footer"> 
    </div><!-- .home .footer --> 
</div><!-- .home .page --> 
</body> 
</html> 

을하지만이를 실행할 때 안드로이드 2.2를 실행하는 삼성 갤럭시 탭의 코드, 나는 완벽하지 않은 두 개의 IFRAMES를 가지고 HTML4.01에있는 것처럼 페이지를 렌더링했다.

답변

관련 문제