jQuery Mobile w przykładach - <ul>, <ol> Lista z dodatkowym elementem z prawej
<ul data-role="listview"><li><a href= ... <p class="ui-li-aside"
Lista z dodatkowym elementem z prawej
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.3/jquery.mobile-1.4.3.min.css" />
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="https://code.jquery.com/mobile/1.4.3/jquery.mobile-1.4.3.min.js"></script>
</head>
<body>
<div data-role="page">
<div data-role="header" data-position="fixed"><H1>Header</H1></div>
<div role="main" class="ui-content">
<div data-role="footer" data-position="fixed"><H1>Footer</H1></div>
</div>
</body>
</html>
Pobierz kod
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.3/jquery.mobile-1.4.3.min.css" />
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="https://code.jquery.com/mobile/1.4.3/jquery.mobile-1.4.3.min.js"></script>
</head>
<body>
<div data-role="page">
<div data-role="header" data-position="fixed"><H1>Header</H1></div>
<div role="main" class="ui-content">
<h3>List with split buttons</h3>
<ul data-role="listview" data-inset="true">
<li><a href="#"><img src="/jqm/img/bach.jpg">
<h2>Bach</h2><p>The Best of Bach</p><p class="ui-li-aside"><strong>5</strong>$</p></a></li>
<li><a href="#"><img src="/jqm/img/beethoven.jpg">
<h2>Beethoven</h2><p>Masters of classical music</p></a><p class="ui-li-aside"><strong>5</strong>$</p></a></li>
<li><a href="#"><img src="/jqm/img/haydn.jpg">
<h2>Haydn</h2><p>Piano Trios</p></a></a><p class="ui-li-aside"><strong>5</strong>$</p></a></li>
<li><a href="#"><img src="/jqm/img/mozart.jpg">
<h2>Mozart</h2><p>Eine Klaine Nachtmusik</p></a><p class="ui-li-aside"><strong>5</strong>$</p></a></li>
</ul>
</div><ul data-role="listview" data-inset="true">
<li><a href="#"><img src="/jqm/img/bach.jpg">
<h2>Bach</h2><p>The Best of Bach</p><p class="ui-li-aside"><strong>5</strong>$</p></a></li>
<li><a href="#"><img src="/jqm/img/beethoven.jpg">
<h2>Beethoven</h2><p>Masters of classical music</p></a><p class="ui-li-aside"><strong>5</strong>$</p></a></li>
<li><a href="#"><img src="/jqm/img/haydn.jpg">
<h2>Haydn</h2><p>Piano Trios</p></a></a><p class="ui-li-aside"><strong>5</strong>$</p></a></li>
<li><a href="#"><img src="/jqm/img/mozart.jpg">
<h2>Mozart</h2><p>Eine Klaine Nachtmusik</p></a><p class="ui-li-aside"><strong>5</strong>$</p></a></li>
</ul>
<div data-role="footer" data-position="fixed"><H1>Footer</H1></div>
</div>
</body>
</html>