Set listview item height
Description
The following code shows how to set listview item height.
Example
<!DOCTYPE html>
<html>
<head>
<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>
<style type='text/css'>
#my-page {<!--from ww w . j a v a 2 s . co m-->
height: 100%;
margin: 0;
padding: 0;
}
#my-page .ui-content, #my-listview {
min-height: 100%;
height: 100%;
margin: 0;
padding: 0;
}
#my-listview .ui-li {
height: 20%;
}
</style>
</head>
<body>
<div data-role="page" id="my-page">
<div data-role="content">
<ul data-role="listview" id="my-listview">
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
</ul>
</div>
</div>
</body>
</html>