Home > Article > Web Front-end > Xiaoqiang’s road to HTML5 mobile development (40) - several ways to practice header definition in jqMobi
Xiaoqiang’s road to HTML5 mobile development (40) - several ways to practice header definition in jqMobi
![黄舟](https://img.php.cn/upload/avatar/000/000/194/591128da2963a284.jpg)
- 黄舟Original
- 2017-02-15 13:08:531575browse
1. Define the global header
This header is the default header for all panels and needs to be inside 4d3cdd0d6096fc7d10c3f51eabfb6ad0, that is, with
For example:
jqMobi
Back Single Page App
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
sketch
Running effect
2. Introduce the header tag into the panel
jqMobi
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
sketch
Back Single Page App
4. Give the corresponding The tag defines the title attribute, and the system will automatically generate the headerjqMobi
Back Single Page App
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
sketch
jqMobi
首页
The above is Xiaoqiang’s The road to HTML5 mobile development (40) - several ways to practice header definition in jqMobi. For more related content, please pay attention to the PHP Chinese website (m.sbmmt.com)!
#
Related articles
See more- AlloyTouch full-screen scrolling plug-in creates a smooth H5 page in 30 seconds
- HTML5 actual combat and analysis of touch events (touchstart, touchmove and touchend)
- Detailed explanation of image drawing examples in HTML5 canvas 9
- Regular expressions and new HTML5 elements
- How to combine NodeJS and HTML5 to drag and drop multiple files to upload to the server