jquery mobile--button

Source: Internet
Author: User

Create button

<div data-role="page"> <div data-role="Header"> "Main" class="ui-content"> <a data-role="Button"> Buttons </a> <button> buttons </button> <input value="Button"Type="Button"> </div> <div data-role="Footer"> 

,<button> is the default block element in jquery Mobile (date-role= "button" also)

Inline button

<a data-role="button" data-inline="true"> button </a ><a data-role="button" data-inline="true"> button </a>

Combo button

Level

<div data-role="Main" class="ui-content"> <div data-role="Controlgroup"Data-type="Horizontal"> <a data-role="Button"> Buttons </a> <a data-role="Button"> Buttons </a> <a data-role="Button"> Buttons </a>
</div></div>

Vertical

<div data-role="Main" class="ui-content"> <div data-role="Controlgroup"Data-type="Vertical"> <a data-role="Button"> Buttons </a> <a data-role="Button"> Buttons </a> <a data-role="Button"> Buttons </a>
</div></div>

The combo button defaults to vertical

Back button

Data-rel="back"

Added this property, will ignore the href anchor (href= "#")

Data-rel has the characteristics of memory, no matter from which page to the current page, as long as the return, will go back to the previous page (if it is a dialog page, click Fork, also such a feature)

Button style

Reference: JQuery Mobile CSS Class reference manual

TIP: If you use the <a> generate button, it seems to be completely controlled with the built-in class

~end

jquery mobile--button

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.