<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Mobile-Web-App: jQuery UI Buttons with Icon</title> <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> <script src="http://code.jquery.com/ui/1.8.18/jquery-ui.js"></script> <link rel="stylesheet" href="http://jqueryui.com/themes/base/jquery.ui.all.css"> <script type="text/javascript"> function onloaded(){ $( "#plus" ).button({ icons: { primary: "ui-icon-plus" },text: true}) $( "#minus" ).button({ icons: { primary: "ui-icon-minus" },text: true}) $( "#close" ).button({ icons: { primary: "ui-icon-close" },text: true}) $( "#heart" ).button({ icons: { primary: "ui-icon-heart" },text: false}) } </script> </head> <body onload="onloaded();"> <h1>Mobile-Web-App: jQuery UI Buttons with Icon</h1> <div> <button id="plus">ui-icon-plus</button> <button id="minus">ui-icon-minus</button> <button id="close">ui-icon-close</button> <button id="heart">ui-icon-heart</button> </div> </body> </html>
jQuery UI's ThemeRoller provides the full set of CSS framework icons in its preview column.
No comments:
Post a Comment