, that is, at the same level as
, and the id must be header."/> , that is, at the same level as
, and the id must be header.">

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

黄舟
黄舟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






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


##In 4d3cdd0d6096fc7d10c3f51eabfb6ad0 Inside, that is, at the same level as 1a73dfa055a76c3606858f541f15b00f, put a header tag and name it id. Then add an attribute data-header="custom_header"


 



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


to the pane that needs this header. 3. Customize each panel header

Define a header inside the panel that needs to be customized. This header only belongs to the panel at this time



 



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

4. Give the corresponding The tag defines the title attribute, and the system will automatically generate the header



 



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)!







#

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn