The jQuery Mobile framework uses a default icon sprite and derives all the icons from it. This recipe shows you how to add a custom icon sprite, with the divide and equals icons, to the default standard icon set, together forming the keys of a calculator. The standard icon set already has the plus, minus, and delete (multiply) icons.
Copy the full code of this recipe from the
code/04/add-icon-sprite sources folder. You can launch this code using the URL
In this recipe, the following image,
calc-sprite.png provides the divide and equals icons:
jqm-sprite.cssstylesheet and define the classes