Basic Theme
Description
We can take an un-themed page and re-style it with a different header and list theme with the simple addition of data-theme attributes.
Example
<!DOCTYPE html>
<html>
<head>
<meta name="viewport"
content="width=device-width, minimum-scale=1, maximum-scale=1">
<link rel="stylesheet"
href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
<style>
.ui-li-heading {<!-- w ww. ja v a 2 s.c om-->
overflow: auto;
white-space: normal;
}
</style>
<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" data-theme="b">
<h1>jMovies</h1>
</div>
<div data-role="content">
<ul data-role="listview" data-inset="true" data-theme="a">
<li data-role="list-divider">Now Playing</li>
<li><a href="#">
<h3>HTML</h3>
<p>Rated: PG</p>
<p>Runtime: 95 min.</p>
</a></li>
<li><a href="#">
<h3>CSS</h3>
<p>Rated: PG-13</p>
<p>Runtime: 137 min.</p>
</a></li>
<li><a href="#">
<h3>Javascript</h3>
<p>Rated: PG-13</p>
<p>Runtime: 131 min.</p>
</a></li>
</ul>
</div>
</div>
</body>
</html>