Full screen mode

Description

The following code shows how to full screen mode.

Example


<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.7.1.js'></script>
<link rel="stylesheet" type="text/css"
  href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css">
<script type='text/javascript'
  src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>
<style type='text/css'>
#mainpage {<!--from ww w. ja va 2  s .  c o  m-->
  background: red;
}

#picture {
  max-height: 100%;
  max-width: 100%;
}
</style>
</head>
<body>
  <div data-role="page">
    <div data-role="header" data-fullscreen="true" data-position="fixed">
      <h1>Header</h1>
    </div>
    <div data-role="content" id="mainpage">
      <img id="picture"
        src="http://placehold.it/300x300">
    </div>
    <div data-role="footer" data-fullscreen="true" data-position="fixed">
      <h4>Footer</h4>
    </div>
  </div>
</body>
</html>

Click to view the demo





















Home »
  jQuery Mobile »
    Example »




Button
Button Event
Button Icon
Button Text
Checkbox
Collapsible
Date
Dialog
Event
Footer
Form
Header
Icon
Input
Layout
Listview
Listview Divider
Listview Item
Loader
mobile_settings
Navbar
Page
Page Event
Popup
Radio
Select
Slider
Switch
Textarea
Theme