Page 22 - JqueryMobile_Manual
P. 22

22

                 <div data-role="main" class="ui-content">
                   <p>A button with only the icon and no text:</p>
                   <a href="#" class="ui-btn ui-icon-search ui-btn-icon-notext">Search</a>
                   <p>A button with only the icon and no text - added rounded corners and some shadow:</p>
                   <a href="#" class="ui-btn ui-shadow ui-corner-all ui-icon-search ui-btn-icon-notext">Search</a>
                 </div>

                 <div data-role="footer">
                   <h1>Footer Text</h1>
                 </div>
               </div>

               </body>
               </html>
                                    Remove the circle (disc) Change the icon color
                                                    tryjqmob_icon_disc.html
               <!DOCTYPE html>
               <html>
               <head>
               <meta name="viewport" content="width=device-width, initial-scale=1">
               <link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
               <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
               <script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
               </head>
               <body>

               <div data-role="page" id="pageone">
                 <div data-role="header">
                   <h1>Icons</h1>
                 </div>

                 <div data-role="main" class="ui-content">
                   <p>A "search" icon with a gray circle around it (default):</p>
                   <a href="#anylink" class="ui-btn ui-btn-inline ui-icon-search ui-btn-icon-left ui-corner-all ui-
               shadow">With circle (default)</a>
                   <a href="#anylink" class="ui-btn ui-btn-inline ui-icon-search ui-btn-icon-notext ui-corner-all ui-
               shadow">With circle (default)</a>

                   <p>A "search" icon without the grey circle (class="ui-nodisc-icon"):</p>
                   <a href="#anylink" class="ui-btn ui-btn-inline ui-icon-search ui-btn-icon-left ui-corner-all ui-shadow ui-
               nodisc-icon">Without circle</a>
                   <a href="#anylink" class="ui-btn ui-btn-inline ui-icon-search ui-btn-icon-notext ui-corner-all ui-shadow
               ui-nodisc-icon">Without circle</a>
                   <p>Notice that when you specify the ui-nodisc-icon class while only displaying the icon, the gray
               background is removed, but the circle is not.
                 </div>

                 <div data-role="footer">
                   <h1>Footer Text</h1>
                 </div>
               </div>

               </body>
               </html>
   17   18   19   20   21   22   23   24   25   26   27