Style footer, navbar and active button

Description

The following code shows how to style footer, navbar and active button.

Example


<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.6.4.js'></script>
<link rel="stylesheet" type="text/css"
  href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css">
<script type='text/javascript'
  src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
<style type='text/css'>
.ui-footer .ui-navbar .ui-btn-active {<!-- w ww. ja v  a  2 s .c  om-->
  border: 1px solid red;
  background: #333333;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 -1px 1px #000;
}
</style>
</head>
<body>
  <div id="testPage" data-role="page" data-theme="a">
    <div data-role="content">Test</div>
    <div data-role="footer">
      <div data-role="navbar">
        <ul>
          <li><a href="#" onclick="">Test1</a></li>
          <li><a href="#" onclick="">Test2</a></li>
        </ul>
      </div>
    </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