-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
jQuery Mobile Cookbook
By :
Fixed toolbars remain in the same position on the screen when the page is scrolled. When the page content of your application occupies the entire viewport, the fixed toolbars will overlap the page content. You cannot toggle the visibility of the fixed toolbars here. To toggle the toolbar visibility, you can use the fixed toolbars in the Fullscreen mode. This recipe shows you how to create a simple Photo Viewer application that uses fullscreen toolbars.
Copy the full code of this recipe from the code/03/fullscreen-toolbars sources folder. This code can be launched using the URL http://localhost:8080/03/fullscreen-toolbars/main.html.
In main.html create the #main page and a <img> tag to display a scaled down image of the Niagara Falls, as shown in the following code:
<div id="main" data-role="page">
<div data-role="header">
<h1>Photo Gallery</h1>
</div>
<div data-role="content">
...
Change the font size
Change margin width
Change background colour