4. jQuery Mobile Theme

1 Provides 5 themes by default, from ae.

   

<div data-role="page" data-theme="a|b|c|d|e">

 

     Themes can be used for: headers, content, footers; dialogs; buttons; icons; lists; forms, and more.

 

2 Custom themes.

    Add new styles by using theme classes in your HTML document - add class ui-bar-(az) for the toolbar and class ui-body-(az) for the content:

<style>
.ui-bar-f
{
color:green;
background-color:yellow;
}
.ui-body-f
{
font-weight:bold;
color:purple;
}
</style>

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326471370&siteId=291194637