mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-26 00:54:43 +00:00
icons page content edits
This commit is contained in:
parent
915d9f133e
commit
b8680de1da
1 changed files with 4 additions and 6 deletions
|
|
@ -16,13 +16,11 @@
|
|||
|
||||
<div data-role="content">
|
||||
|
||||
<p>There a core set of standard icons included in the framework. To minimize the download size of the core icons, jQuery Mobile only includes these icons in white and black colored sprites and automatically adds a semi-transparent black circle behind the icon to make sure it has good contrast on all background colors.</p>
|
||||
<h2>Adding Icons to Buttons</h2>
|
||||
<p>The jQuery Mobile framework includes a selected set of icons most often needed for mobile apps. To minimize download size, jQuery Mobile includes a single white icon sprite, and automatically adds a semi-transparent black circle behind the icon to ensure that it has good contrast on any background color.</p>
|
||||
|
||||
|
||||
|
||||
<h2>Adding icons</h2>
|
||||
|
||||
<p>Icons can be added to buttons by adding a <code>data-icon</code> attribute on the anchor to specify the icon to display.</p>
|
||||
<p>An icon can be added to a button by adding a <code>data-icon</code> attribute on the anchor specifying the icon to display. For example, the following markup:</p>
|
||||
|
||||
<code>
|
||||
<a href="index.html" data-role="button" <strong>data-icon="delete"</strong>>Delete</a>
|
||||
|
|
@ -33,7 +31,7 @@
|
|||
|
||||
<h2>Icon set</h2>
|
||||
|
||||
<p>This is a reference for the icon names you can specify in the <code>data-icon</code> attribute.</p>
|
||||
<p>To use the icons shown below, reference the following <code>data-icon</code> attributes:</p>
|
||||
|
||||
<p><strong>Left arrow</strong> - data-icon="arrow-u"</p>
|
||||
<a href="index.html" data-role="button" data-icon="arrow-l">My button</a>
|
||||
|
|
|
|||
Loading…
Reference in a new issue