mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-25 08:34:43 +00:00
Fixed inline button docs to remove the incorrect info that wrapping multiple buttons in a container with data-inline="true" woudl work. You must add this each each button.
This commit is contained in:
parent
ca173441d0
commit
4f6eea6e00
1 changed files with 4 additions and 6 deletions
|
|
@ -33,16 +33,14 @@
|
|||
|
||||
<a href="index.html" data-role="button" data-inline="true">Button</a>
|
||||
|
||||
<p>If you have multiple buttons that should sit side-by-side on the same line, wrap the buttons in a container that has a <code> data-inline="true"</code> attribute. This will style the buttons to be the width of their content and float the buttons so they sit on the same line. </p>
|
||||
<p>If you have multiple buttons that should sit side-by-side on the same line, add the <code> data-inline="true"</code> attribute to each button. This will style the buttons to be the width of their content and float the buttons so they sit on the same line. </p>
|
||||
|
||||
<pre><code>
|
||||
<div data-inline="true">
|
||||
<a href="index.html" data-role="button">Cancel</a>
|
||||
<a href="index.html" data-role="button" data-theme="b">Save</a>
|
||||
</div>
|
||||
<a href="index.html" data-role="button" data-inline="true">Cancel</a>
|
||||
<a href="index.html" data-role="button" data-inline="true" data-theme="b">Save</a>
|
||||
</code></pre>
|
||||
|
||||
<p>This creates an inline button set:</p>
|
||||
<p>The result is this:</p>
|
||||
|
||||
<a href="index.html" data-role="button" data-inline="true">Cancel</a>
|
||||
<a href="index.html" data-role="button" data-theme="b" data-inline="true">Save</a>
|
||||
|
|
|
|||
Loading…
Reference in a new issue