Style page with theme a

Description

The following code shows how to style page with theme a.

Example


<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.6.js'></script>
<script type='text/javascript'
  src="http://code.jquery.com/mobile/latest/jquery.mobile.min.js"></script>
<link rel="stylesheet" type="text/css"
  href="http://code.jquery.com/mobile/latest/jquery.mobile.min.css">
</head><!--from w  w  w.  j  a v  a 2  s .  c om-->
<body>
  <div data-role="page" id="p1">
    <div data-role="header">
      <h1>Header Page 1</h1>
    </div>
    <div data-role="content">
      <ul data-role="listview" data-inset="true" data-divider-theme="a">
        <li data-role="list-divider">
          <div class="ui-bar ui-grid-a">
            <div class="ui-block-a" style="margin-top: 10px;">List
              Header</div>
            <div class="ui-block-b" style="text-align: right;">
              <a href="#" data-role="button" data-mini="true" data-icon="plus"
                data-inline="true" data-theme="a">Add</a>
            </div>
          </div>
        </li>
        <li>List item 1</li>
      </ul>
    </div>
    <div data-role="footer">
      <h4>Footer</h4>
    </div>
  </div>
</body>
</html>

Click to view the demo





















Home »
  jQuery Mobile »
    Example »




Button
Button Event
Button Icon
Button Text
Checkbox
Collapsible
Date
Dialog
Event
Footer
Form
Header
Icon
Input
Layout
Listview
Listview Divider
Listview Item
Loader
mobile_settings
Navbar
Page
Page Event
Popup
Radio
Select
Slider
Switch
Textarea
Theme