


Xiaoqiang's HTML5 mobile development road (43) - JqueryMobile header, toolbar and tab bar navigation
1. Header
1. Add header and footer
<p data-role="header"> <h1>第 1 页</h1> </p>
<p data-role="footer"> <h4>页面脚注</h4> </p>
The default header is displayed at the top edge of the screen, and the header will slide when the screen is scrolled. Outside the screen, you can create a fixed header by adding the data-position attribute
<p data-role="header" data-position="fixed"> <h1>第 1 页</h1> </p>
<p data-role="footer" data-position="fixed"> <h4>页面脚注</h4> </p>
You can use the date-theme attribute to adjust the theme of the header. The default theme is black data-theme="a"
jQuery Mobile Web 应用程序 <p data-role="header" data-position="fixed"> <h1>第 1 页</h1> </p>
- 第 2 页
- 第 3 页
- 第 4 页
- 第 2 页
- 第 3 页
- 第 4 页
- 第 2 页
- 第 3 页
- 第 4 页
- 第 2 页
- 第 3 页
- 第 4 页
- 第 2 页
- 第 3 页
- 第 4 页
- 第 2 页
- 第 3 页
- 第 4 页
- 第 2 页
- 第 3 页
- 第 4 页
- 第 2 页
- 第 3 页
- 第 4 页
第 2 页
内容
<p data-role="footer"> <h4>页面脚注</h4> </p>
第 3 页
内容
<p data-role="footer"> <h4>页面脚注</h4> </p>
第 4 页
内容
<p data-role="footer"> <h4>页面脚注</h4> </p>
After adding data-fullscreen="true" to the page container, the header and footer will appear when you click on the screen, and they will disappear when you click again.
2. Add a return button
<p data-role="header" data-position="fixed"> <a href="#" data-icon="back">返回</a> <h1>第 1 页</h1> <a href="#" data-icon="plus" data-iconpos="notext"/> </p>
<p data-role="header" data-position="fixed"> <a href="#" data-icon="back">返回</a> <h1>第 1 页</h1> <a href="#" data-icon="plus" data-iconpos="notext"/> <p data-role="controlgroup" data-type="horizontal" align="center" class="segment-control"> <a href="#" data-role="button" class="ui-control-active">菜单一</a> <a href="#" data-role="button" class="ui-control-inactive">菜单二</a> <a href="#" data-role="button" class="ui-control-inactive">菜单三</a> </p> </p>
<style style="text/css"> .segment-control{text-align:center;margin:0.2em;} .ui-control-active, .ui-control-inactive{border-style:solid; border-color:gray;} .ui-control-active{background:#BBB;} .ui-control-inactive{background:#DDD;} </style>
##4. Tag navigation bar
<p data-role="footer" data-position="fixed"> <p data-role="navbar"> <ul> <li><a href="#" data-icon="arrow-l">A</a></li> <li><a href="#" data-icon="back">B</a></li> <li><a href="#" data-icon="star">C</a></li> <li><a href="#" data-icon="plus">D</a></li> <li><a href="#" data-icon="arrow-r">E</a></li> </ul> </p> </p>
The above is the content of Xiaoqiang’s HTML5 mobile development path (43) - JqueryMobile header, toolbar and tab bar navigation. For more related content, please Follow the PHP Chinese website (www.php.cn)!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Guide to Table Border in HTML. Here we discuss multiple ways for defining table-border with examples of the Table Border in HTML.

Guide to HTML margin-left. Here we discuss a brief overview on HTML margin-left and its Examples along with its Code Implementation.

This is a guide to Nested Table in HTML. Here we discuss how to create a table within the table along with the respective examples.

Guide to HTML Table Layout. Here we discuss the Values of HTML Table Layout along with the examples and outputs n detail.

Guide to HTML Input Placeholder. Here we discuss the Examples of HTML Input Placeholder along with the codes and outputs.

Guide to the HTML Ordered List. Here we also discuss introduction of HTML Ordered list and types along with their example respectively

Guide to Moving Text in HTML. Here we discuss an introduction, how marquee tag work with syntax and examples to implement.

Guide to HTML onclick Button. Here we discuss their introduction, working, examples and onclick Event in various events respectively.
