Jquery mobile combines grid

Source: Internet
Author: User

1
<Div id = "findBar" class = "ui-grid-a">
2
<Div class = "ui-block-a"> <input placeholder = "" data-theme = "e" type = "search" name = "sw" id = "sw" value = "" data-mini = "true"/> </div>
3
<Div class = "ui-block-B"> <button id = "doFind" type = "button" data-theme = "B" data-icon = "search" data- mini = "true"> query </button> </div>
4
</Div>

By default, the style above occupies 50% space for each of the two spaces. The effect is as follows:
2/3 of input space and 1/3 of button Space
Implementation Method:

1
<Style type = "text/css">
2
Div # findBar. ui-grid-a. ui-block-a {width: 65%}
3
Div # findBar. ui-grid-a. ui-block-B {width: 35%}
4
</Style>

Id is specified to avoid affecting other grid lagrid S.
Css is also very useful.

 


Author: Kai Ge

Related Article

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.