Html5+jquery Mobile WAP Experience Summary (ii)-A/input style redefined

Source: Internet
Author: User

JQuery Mobile, many styles are written well, although there are themes, but for the personalized WAP site, it is still difficult to manage.

After using Html5+jquery Mobile to do several pages, the problems encountered in the middle and the solutions are now summarized for later review.

Problem:

1, a color redefine the problem

2, the button color problem in input,

Input box, left icon showing problem (text indent)

3. The icon customization question in the above "explained above, redefined by Ui-icon-xxx:after"

Solve:

1-2, a/input can be redefined using the

. ui-page-theme-a a.c_hot_60{color: #ff6600;}

. ui-page-theme-a input.btn-green{Background:url (.. /images/btn_green.png) No-repeat; background-size:100% 100%;}

Note: In the label, add the corresponding class, and you need to label the subject, such as <a href= "#" Data-theme= "Ui-page-theme-s" class= "C-hot-f60 fr" > New user Registration </a>. The input usage method is consistent.

If you do not need to label the subject, write input.ti_3{text-indent:3em directly;} Or you can.

Html5+jquery Mobile WAP Experience Summary (ii)-A/input style redefined

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.