工作實施例:
主HTML
<div data-role="page">
<div data-role="header">
<h1>Demo Page</h1>
</div><!-- /header -->
<div data-role="content">
<h2>Lorem Ipsum</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque semper feugiat condimentum. Donec rutrum lectus tortor, et pharetra sapien. Sed sollicitudin lectus sed urna consectetur sagittis. Pellentesque at arcu dui. Curabitur molestie velit id neque mattis vestibulum. Sed sit amet ante at tellus volutpat tempor quis eu magna. Pellentesque elementum semper congue. Praesent vitae eros id ante dapibus commodo. Aliquam leo nisi, feugiat eu imperdiet sed, tincidunt in lacus. Praesent bibendum dapibus vestibulum. Fusce condimentum bibendum libero eu aliquet.</p>
<ul data-role="listview" data-dividertheme="d" style="margin-top: 0;">
<li><a href="http://jsfiddle.net/phillpafford/rGacN/4/embedded/result/" rel="external" data-transidiont="slide">Link 1 (External)</a></li>
<li><a href="#internal">Internal Link1</a></li>
<li><a href="#internal2">Internal Link2</a></li>
<li><a href="#internal3">Internal Link3</a></li>
</ul>
</div><!-- /content -->
</div><!-- /page -->
外部HTML
<div data-role="page">
<div data-role="header">
<a data-rel="back">Back</a> <!-- Here you add the data-rel -->
<h1>External Demo Page</h1>
</div><!-- /header -->
<div data-role="content">
<h2>Lorem Ipsum</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque semper feugiat condimentum. Donec rutrum lectus tortor, et pharetra sapien. Sed sollicitudin lectus sed urna consectetur sagittis. Pellentesque at arcu dui. Curabitur molestie velit id neque mattis vestibulum. Sed sit amet ante at tellus volutpat tempor quis eu magna. Pellentesque elementum semper congue. Praesent vitae eros id ante dapibus commodo. Aliquam leo nisi, feugiat eu imperdiet sed, tincidunt in lacus. Praesent bibendum dapibus vestibulum. Fusce condimentum bibendum libero eu aliquet.</p>
</div><!-- /content -->
</div><!-- /page -->
您正在使用的jQM版本?也許一些代碼如何實現它哦jsfiddle.net –
我正在使用JQM 1.0b3 – avivas
我正在使用JQM 1.0b3。另外,儘管我將它添加到了[jsfiddle](http://jsfiddle.net/bfpN8/2/),但它很難,因爲我有多個html文件。問題是,ajax方法只用data-role =「page」來拉第一個div,但我需要這個外部html頁面中的一個具有多個div,但是當我這樣做時,後退按鈕不會呈現。 – avivas