Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop JQM from styling a page?

I have a JQM app with one specific page that I do not want styled.

All I have found so far is data-role='none' - but I don't want to have to apply that to every element on the page... Is there a way to turn if off just for this one page?

like image 392
speg Avatar asked Apr 04 '12 15:04

speg


1 Answers

As I already pointed out here, you can also use the official, theme-less version of the CSS built specifically to allow the design of a custom theme.

In my experience, using hacks like data-enhance="false" and data-role="none" often breaks things with structural, non-thematic CSS as well.

With this method you are able to keep all jQuery Mobile basic functionality, you don't have to fight with hacks and overrides all the time, and you get a lighter CSS as a bonus.

like image 143
zool Avatar answered Sep 21 '22 12:09

zool