mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-17 14:30:28 +00:00
39 lines
No EOL
1.6 KiB
HTML
Executable file
39 lines
No EOL
1.6 KiB
HTML
Executable file
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>jQuery Mobile Framework - Fixed toolbars variation</title>
|
|
<link rel="stylesheet" href="../../themes/default" />
|
|
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
|
|
<script type="text/javascript" src="../../js/"></script>
|
|
</head>
|
|
<body>
|
|
|
|
<div data-role="page" data-fullscreen="true">
|
|
|
|
<div data-role="header" data-position="fixed">
|
|
<h1>Fullscreen fixed header</h1>
|
|
</div>
|
|
|
|
<div data-role="content">
|
|
<img src="images/photo-run.jpeg" width="640" height="480" alt="Photo Run">
|
|
|
|
<p class="ui-body">This page demonstrates the "fullscreen" toolbar mode. This toolbar treatment is used in special cases where you want the content to fill the whole screen, and you want the header and footer toolbars to appear and disappear when the page is clicked responsively — a common scenario for photo, image or video viewers.</p>
|
|
|
|
<p class="ui-body">To enable this toolbar feature type, you apply a <code>data-fullscreen="true"</code> attribute to the <code>div</code> contain that has the attribute <code>data-role="page"</code>, and the <code>data-position="fixed"</code> attribute to both the header and footer <code>div</code> elements. </p>
|
|
|
|
<p class="ui-body">Keep in mind that the toolbars in this mode will sit <strong>over</strong> page content, so not all content will be accessible with the toolbars open, just as shown in this demo.</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div data-role="footer" data-position="fixed">
|
|
<h1>Fullscreen fixed footer</h1>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
</body>
|
|
</html> |