Skip to content Skip to navigation

Connexions

You are here: Home » Content » jQuery Mobile - Theming

Navigation

Recently Viewed

This feature requires Javascript to be enabled.
 

jQuery Mobile - Theming

Module by: Bodil Skov. E-mail the author

Themes

Med jQuery Mobile kan man benytte temaer, der giver mulighed for at tilpasse farveskemaer og visse CSS-aspekter. Man kan bruge jQuery Mobile ThemeRoller applikationen for at tilpasse temaerne. Efter at have udviklet et tema i ThemeRoller applikationen, kan man hente en brugerdefineret CSS-fil og indlejre den i sit projekt og på den måde bruge de brugerdefinerede tema.

Hvert tema kan indeholde op til 26 unikke "farveprøver", som hver består af en header bar, en body, og knapper. Kombinationen af de forskellige farveprøver giver mulighed for at skabe en bredere vifte af visuelle effekter, end man ville være i stand til med kun en farveprøve per tema. Skift mellem forskellige farveprøver i et tema er så simpelt som at tilføje en attribut kaldet "data-tema" til sine HTML-elementer.

jQuery Mobile standardtema har fem forskellige farveskemaer: "a", "b", "c", "d", og "e". På den måde, kan man let skifte mellem forskellige temaer ved blot at ændre bogstavet i koden.

(Kilde:Wikipedia)

Figure 1
Temaer
Temaer

Man kan få mere at vide om temaer her.

Content actions

Download module as:

Add module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks