jQuery Mobile w przykładach - <ul>, <ol> Lista z własnymi ikonami

<ul data-role="listview"> ... <img class="ui-li-icon"

Lista z własnymi ikonami

<!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">
      <h3>List with own icons</h3>
      <ul data-role="listview" data-inset="true">
         <li><a href="#"><img src="/jqm/img/image.png" alt="Image" class="ui-li-icon">Image</a></li>
         <li><a href="#"><img src="/jqm/img/drop.png" alt="Drop" class="ui-li-icon">Drop</a></li>
         <li><a href="#"><img src="/jqm/img/edit.png" alt="Edit" class="ui-li-icon">Edit</a></li>
         <li><a href="#"><img src="/jqm/img/vote.png" alt="Vote" class="ui-li-icon">Vote</a></li>
      </ul>
   </div>
   <div data-role="footer" data-position="fixed"><H1>Footer</H1></div>
</div>
</body>
</html>
Pobierz kod