Icon Buttons

Description

jQuery Mobile includes a set of standard icons that are commonly used in mobile applications.

Example


<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Buttons</title>
<meta name="viewport"
  content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
<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>
</head><!--from ww w . java2 s.  c o m-->
<body>

  <div data-role="page">
    <div data-role="header">
      <h1>Buttons with Icons</h1>
    </div>

    <div data-role="content">
      <p style="text-align: center;">
        <input type="button" value="Button input" data-icon="delete"
          data-theme="b" data-inline="true" />
      </p>
      <p style="text-align: center;">
        <a href="#" data-role="button" data-icon="plus" data-theme="b"
          data-inline="true">Button link</a>
      </p>
      <p style="text-align: center;">
        <button data-icon="minus" data-theme="b" data-inline="true">Button
          element</button>
      </p>
    </div>
  </div>

</body>
</html>

Click to view the demo





















Home »
  jQuery Mobile »
    Tutorial »




jQuery_Mobile
Form
List
Layout
Theme