Xiaoqiang's HTML5 mobile development path (40) -- several methods to implement header definition in jqMobi

Source: Internet
Author: User

1. Define global Headers

This header is the default header of all panels. It must be in <div id = "afui">, that is, add a header tag at the same level as <div id = "content"> and the id must be a header

For example:

<!DOCTYPE html> Running Effect


Ii. Adding header labels to a panel

Inside <div id = "afui">, that is, a header label at the same level as <div id = "content"> and the id is named. Then, you need to add a property data-header = "custom_header" to the pane of this header"

<!DOCTYPE html> 

3. Custom headers for each panel

Define a header inside the panel to be customized. This header only belongs to this panel.

<!DOCTYPE html> 4. Define the title attribute for the corresponding tag, and the system will automatically generate the header

<! DOCTYPE html> 









Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.