HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
jQuery Mobile provides two different theme styles, from "a" to "b" - each themed buttons, toolbars, etc. content block colors are inconsistent, the visual effect is not the same for each topic.
By setting the element data-theme attribute can customize the appearance of the application:
<a href="#" class="ui-btn ui-btn-a|b">按钮</a>
value | description | Examples |
---|---|---|
a | Page black text on a gray background head and bottom are black text on a gray background background black button gray text activation buttons and links to white text on a blue background input input box placeholder attribute value is a light gray, value is black | try it |
b | Page black background with white text at the bottom of the head are white text on a black background a white text button activated charcoal background buttons and links to white text on a blue background input input box placeholder attribute value is a light gray, value is white | try it |
Button Style Use class = "ui-btn", using "ui-btn-a | b" class settings button is grayed out (default) or black:
<a href="#" class="ui-btn ui-btn-a|b">按钮</a>
"A" style theme for most of the elements, sub-elements generally inherit the style of the parent element. |
jQuery Mobile can add new topics in the mobile page.
By modifying the CSS file to add or edit a new theme (if you have downloaded the jQuery Mobile). You only need to copy the style module, and then re-letter command class name (cz), and add your favorite color and font style.
You can also add HTML document relating to the new style, the toolbar add class: ui-bar- (az), add text content categories: ui-body- (az), add page categories: ui-page-theme- ( az).
In previous versions of jQuery Mobile, an element using JavaScript to inherit parent theme styles. To the 1.4 version, more focused framework for performance improvement, is no longer used JavaScript to inherit, but using pure CSS. jQuery Mobile team for this have created a tool to address the ThemeRoller . You can use this tool to upgrade an old theme, making it compatible with the new version. |