我有这种标记(基本上是一个主 ul,几乎没有嵌套 ul)
<ul id="listaRecetas" data-role="listview" data-add-back-btn="true">
<li title ="people">
<a href="index.php?task=browse_posts&catid=47">
people
</a>
<ul class="sn">
</ul>
</li>
<li title ="Art">
<a href="index.php?task=browse_posts&catid=14">
Art
</a>
<ul class="sn">
<li >
<img src="/files/uploads/1_art_alan_hydes.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=56" >
Alan Hyde
<span>
</span>
</a>
</li>
<li >
<div style="float:left;width:39px; height:37px">
</div>
<a href="mobilePage.php?task=view_post&blogid=48" >
Arturo Rhodes
<span>
</span>
</a>
</li>
<li >
<div style="float:left;width:39px; height:37px">
</div>
<a href="mobilePage.php?task=view_post&blogid=66" >
Bob Bradbury
<span>
</span>
</a>
</li>
<li >
<div style="float:left;width:39px; height:37px">
</div>
<a href="mobilePage.php?task=view_post&blogid=65" >
Cecily Sheridan
<span>
</span>
</a>
</li>
<li >
<img src="/files/uploads/davidgoodehill.png" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=25" >
David Goode Hill
<span>
</span>
</a>
</li>
<li >
<div style="float:left;width:39px; height:37px">
</div>
<a href="mobilePage.php?task=view_post&blogid=67" >
George Sheridan
<span>
</span>
</a>
</li>
<li >
<div style="float:left;width:39px; height:37px">
</div>
<a href="mobilePage.php?task=view_post&blogid=62" >
Josh Burbank
<span>
</span>
</a>
</li>
<li >
<div style="float:left;width:39px; height:37px">
</div>
<a href="mobilePage.php?task=view_post&blogid=57" >
Leila Ward
<span>
</span>
</a>
</li>
<li >
<img src="/files/uploads/3-600x600.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=58" >
Letitia Bermejo
<span>
</span>
</a>
</li>
<li >
<div style="float:left;width:39px; height:37px">
</div>
<a href="mobilePage.php?task=view_post&blogid=59" >
Miquel Oliver
<span>
</span>
</a>
</li>
<li >
<img src="/files/uploads/portraits-robert-graves.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=19" >
Robert Graves
<span>
</span>
</a>
</li>
<li >
<img src="/files/uploads/1_artist_stephanie_moog.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=60" >
Stephanie Moog
<span>
</span>
</a>
</li>
<li >
<div style="float:left;width:39px; height:37px">
</div>
<a href="mobilePage.php?task=view_post&blogid=61" >
Sunna Wathen
<span>
</span>
</a>
</li>
<li >
<img src="/files/uploads/1_art_david_templeton.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=148" >
David Templeton
<span>
</span>
</a>
</li>
<li >
<img src="/files/uploads/camouflage-1985-1987.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=13" >
Mati klarwein
<span>
</span>
</a>
</li>
</ul>
</li>
<li title ="sleep">
<a href="index.php?task=browse_posts&catid=7">
sleep
</a>
<ul class="sn">
<li >
<img src="/files/uploads/villaverde-deia_big.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=16" >
Hostal Villaverde
<span>
**
</span>
</a>
</li>
<li >
<img src="/files/uploads/1_sleep_costa_dor.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=53" >
Hotel Costa D'or
<span>
*****
</span>
</a>
</li>
<li >
<img src="/files/uploads/1_sleep_des_puig.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=38" >
Hotel des Puig
<span>
***
</span>
</a>
</li>
<li >
<img src="/files/uploads/1_sleep_es_moli.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=14" >
Hotel es Molí
<span>
****
</span>
</a>
</li>
<li >
<img src="/files/uploads/La-Residencia-Hotel-Mallorca.jpeg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=15" >
Hotel La Residencia
<span>
*****
</span>
</a>
</li>
<li >
<img src="/files/uploads/1_sleep_pension_miramar.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=64" >
Pensiónl Miramar
<span>
</span>
</a>
</li>
<li >
<img src="/files/uploads/1_sleep_sa_pedrissa.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=37" >
Sa Pedrissa
<span>
****
</span>
</a>
</li>
</ul>
</li>
<li title ="party">
<a href="index.php?task=browse_posts&catid=46">
party
</a>
<ul class="sn">
</ul>
</li>
<li title ="EAT & DRINK">
<a href="index.php?task=browse_posts&catid=8">
EAT & DRINK
</a>
<ul class="sn">
<li >
<img src="/files/uploads/1_eatdrink_sa_font_fresca.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=35" >
Cafè sa Font Fresca
<span>
€
</span>
</a>
</li>
<li >
<img src="/files/uploads/1_eatdrink_chiringuito_sonmarroig.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=28" >
Chiringuito de Sa Foradada
<span>
€€
</span>
</a>
</li>
<li >
<img src="/files/uploads/1_eatdrink_sonmarroig.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=97" >
Chiringuito Son Marroig
<span>
€€
</span>
</a>
</li>
<li >
<div style="float:left;width:39px; height:37px">
</div>
<a href="mobilePage.php?task=view_post&blogid=146" >
Deia Restaurante
<span>
€€
</span>
</a>
</li>
<li >
<img src="/files/uploads/1_eatdrink_el_olivo.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=81" >
El Olivo
<span>
€€€€€
</span>
</a>
</li>
<li >
<img src="/files/uploads/1_es raco 1.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=49" >
Es Raco des Teix
<span>
€€€€€
</span>
</a>
</li>
<li >
<img src="/files/uploads/1_eatdrink_sa_Cacera.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=141" >
Sa Cacera
<span>
€
</span>
</a>
</li>
<li >
<img src="/files/uploads/1_eatdrink_sa_fonda.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=27" >
Sa Fonda
<span>
€
</span>
</a>
</li>
<li >
<img src="/files/uploads/1_eatdrink_sa_vinya_1.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=36" >
Sa Vinya
<span>
€€€
</span>
</a>
</li>
<li >
<img src="/files/uploads/1_eatdrink_son_moragues.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=82" >
Son Moragues Terrace & Bar
<span>
€€€€
</span>
</a>
</li>
<li >
<img src="/files/uploads/1_eatdrink_village_Cafe.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=63" >
The Village Cafe
<span>
€€€
</span>
</a>
</li>
<li >
<img src="/files/uploads/1_eatdrink_xelini.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=91" >
Xelini
<span>
€€€
</span>
</a>
</li>
<li >
<img src="/files/uploads/1_eatdrink_can_lluc.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=42" >
Ca'n Lluch
<span>
€€
</span>
</a>
</li>
<li >
<div style="float:left;width:39px; height:37px">
</div>
<a href="mobilePage.php?task=view_post&blogid=40" >
Ca'n Quet
<span>
€€€€
</span>
</a>
</li>
<li >
<img src="/files/uploads/1_eatdrink_cas_patro.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=41" >
Ca's Patró March
<span>
€€€
</span>
</a>
</li>
<li >
<div style="float:left;width:39px; height:37px">
</div>
<a href="mobilePage.php?task=view_post&blogid=30" >
Deià Restaurante
<span>
</span>
</a>
</li>
<li >
<img src="/files/uploads/1_eatdrink_espunt.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=142" >
Es Punt
<span>
€€€
</span>
</a>
</li>
<li >
<img src="/files/uploads/1_eatdrink_las_palmeras.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=32" >
Las Palmeras
<span>
€€
</span>
</a>
</li>
<li >
<img src="/files/uploads/Restaurante Sa Cova.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=17" >
Sa Cova
<span>
€
</span>
</a>
</li>
<li >
<img src="/files/uploads/restaurant1.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=18" >
Sebastian's
<span>
€€€€
</span>
</a>
</li>
<li >
<img src="/files/uploads/1_eatdrink_son_marroig.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=85" >
Son Marroig
<span>
€€€
</span>
</a>
</li>
<li >
<img src="/files/uploads/1_eatdrink_trattoria_1.jpg" style="float:left;height:39px;width:39px;" />
<a href="mobilePage.php?task=view_post&blogid=33" >
Trattoria Italiana
<span>
€€€
</span>
</a>
</li>
</ul>
</li>
<li title ="To Do">
<a href="index.php?task=browse_posts&catid=13">
To Do
</a>
<ul class="sn">
<li title ="beach">
<a href="index.php?task=browse_posts&catid=21">
beach
</a>
<ul class="sn">
</ul>
</li>
<li title ="kids">
<a href="index.php?task=browse_posts&catid=22">
kids
</a>
<ul class="sn">
</ul>
</li>
<li title ="tenis">
<a href="index.php?task=browse_posts&catid=23">
tenis
</a>
<ul class="sn">
</ul>
</li>
<li title ="Spa">
<a href="index.php?task=browse_posts&catid=24">
Spa
</a>
<ul class="sn">
</ul>
</li>
<li title ="yoga">
<a href="index.php?task=browse_posts&catid=25">
yoga
</a>
<ul class="sn">
</ul>
</li>
<li title ="gym">
<a href="index.php?task=browse_posts&catid=26">
gym
</a>
<ul class="sn">
</ul>
</li>
<li title ="walks">
<a href="index.php?task=browse_posts&catid=28">
walks
</a>
<ul class="sn">
</ul>
</li>
<li title ="Art classes">
<a href="index.php?task=browse_posts&catid=29">
Art classes
</a>
<ul class="sn">
</ul>
</li>
<li title ="cooking">
<a href="index.php?task=browse_posts&catid=30">
cooking
</a>
<ul class="sn">
</ul>
</li>
<li title ="boats">
<a href="index.php?task=browse_posts&catid=31">
boats
</a>
<ul class="sn">
</ul>
</li>
<li title ="kayak">
<a href="index.php?task=browse_posts&catid=32">
kayak
</a>
<ul class="sn">
</ul>
</li>
<li title ="fishing">
<a href="index.php?task=browse_posts&catid=33">
fishing
</a>
<ul class="sn">
</ul>
</li>
<li title ="museums">
<a href="index.php?task=browse_posts&catid=34">
museums
</a>
<ul class="sn">
</ul>
</li>
<li title ="Shopping">
<a href="index.php?task=browse_posts&catid=51">
Shopping
</a>
<ul class="sn">
</ul>
</li>
<li title ="Art Galleries">
<a href="index.php?task=browse_posts&catid=52">
Art Galleries
</a>
<ul class="sn">
</ul>
</li>
<li title ="Art Galleries">
<a href="index.php?task=browse_posts&catid=53">
Art Galleries
</a>
<ul class="sn">
</ul>
</li>
</ul>
</li>
<li title ="properties">
<a href="index.php?task=browse_posts&catid=19">
properties
</a>
<ul class="sn">
<li title ="For sale">
<a href="index.php?task=browse_posts&catid=35">
For sale
</a>
<ul class="sn">
</ul>
</li>
<li title ="For rent">
<a href="index.php?task=browse_posts&catid=36">
For rent
</a>
<ul class="sn">
</ul>
</li>
<li title ="Market reports">
<a href="index.php?task=browse_posts&catid=48">
Market reports
</a>
<ul class="sn">
</ul>
</li>
</ul>
</li>
<li title ="Gallery">
<a href="index.php?task=browse_posts&catid=15">
Gallery
</a>
<ul class="sn">
<li title ="photos">
<a href="/category/gallery/15/?media=photo">
photos
</a>
</li>
<li title ="videos">
<a href="/category/gallery/15/?media=video">
videos
</a>
</li>
</ul>
</li>
<li title ="classifieds">
<a href="index.php?task=browse_posts&catid=11">
classifieds
</a>
<ul class="sn">
</ul>
</li>
<li title ="Calendar">
<a href="index.php?task=browse_posts&catid=10">
Calendar
</a>
<ul class="sn">
<li>
<a href="/category/calendar/10/?start_date=1">
enero
</a>
</li>
<li>
<a href="calendar.php?start_date=2">
febrero
</a>
</li>
<li>
<a href="calendar.php?start_date=3">
marzo
</a>
</li>
<li>
<a href="calendar.php?start_date=4">
abril
</a>
</li>
<li>
<a href="calendar.php?start_date=5">
mayo
</a>
</li>
<li>
<a href="calendar.php?start_date=6">
June
</a>
</li>
<li>
<a href="calendar.php?start_date=7">
July
</a>
</li>
<li>
<a href="calendar.php?start_date=8">
agosto
</a>
</li>
<li>
<a href="calendar.php?start_date=9">
setiembre
</a>
</li>
<li>
<a href="calendar.php?start_date=10">
octubre
</a>
</li>
<li>
<a href="calendar.php?start_date=11">
noviembre
</a>
</li>
<li>
<a href="calendar.php?start_date=12">
diciembre
</a>
</li>
</ul>
</li>
<li title ="News">
<a href="index.php?task=browse_posts&catid=9">
News
</a>
<ul class="sn">
</ul>
</li>
<li title ="about">
<a href="index.php?task=browse_posts&catid=6">
about
</a>
<ul class="sn">
<li title ="where">
<a href="/category/about/6/#where">
where
</a>
</li>
<li title ="weather">
<a href="/category/about/6/#weather">
weather
</a>
</li>
<li title ="history">
<a href="/category/about/6/#history">
history
</a>
</li>
<li title ="Art culture">
<a href="/category/about/6/#art_culture">
Art culture
</a>
</li>
<li title ="Calendar">
<a href="/category/calendar/10/">
Calendar
</a>
</li>
<li title ="Numbers of interest">
<a href="index.php?task=browse_posts&catid=45">
Numbers of interest
</a>
<ul class="sn">
</ul>
</li>
</ul>
</li>
<li title ="Home">
<a href="index.php?task=browse_posts&catid=5">
Home
</a>
<ul class="sn">
</ul>
</li>
</ul>
我试过这个解决方案:
并添加data-add-back-button="true"
到每个<ul>
但是后退按钮不见了...
只需点击 ListView 中的任何项目,您就会看到没有后退按钮。
我错过了什么?