Vous avez trouvé ce tutoriel intéressant ? Recommandez le en cliquant sur le bouton +1    

Liste avec compteur à bulle

Tutoriel publié le et mis à jour le
Tutoriel en Français

Exemple de liste avec compteur à bulle

<!DOCTYPE html> 
<html> 
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1"> 
		<title>Exemple de liste avec compteur à bulle</title> 
		<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
		<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
		<script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
	</head> 
	<body> 
		<div data-role="page">
			<div data-role="header">
				<h1>Exemple de liste avec compteur à bulle</h1>
			</div><!-- /header -->
			<div data-role="content">	
				<ul data-role="listview">
					<li><a href="index.html">Inbox <span class="ui-li-count">12</span></a></li>
					<li><a href="index.html">Outbox <span class="ui-li-count">0</span></a></li>
					<li><a href="index.html">Drafts <span class="ui-li-count">4</span></a></li>
					<li><a href="index.html">Sent <span class="ui-li-count">328</span></a></li>
					<li><a href="index.html">Trash <span class="ui-li-count">62</span></a></li>
				</ul>
			</div><!-- /content -->
			<div data-role="footer">
				<h4>Contenu du pied de page</h4>
			</div><!-- /footer -->
		</div><!-- /page -->
	</body>
</html>

Voir le résultat : Exemple de liste avec compteur à bulle.