JQuery Mobile (multi-view page, view switching animation, dialog box, page topic )-

Source: Internet
Author: User

1. multi-view page <section data-role = "page" id = "firstview" data-title = "first view">

 

2. view switching animation <a href = "# secondview" data-rel = "dialog" data-transition = "pop"> pop slide slideup slidedown fade flip
3. dialog Box <a href = "# secondview" data-rel = "dialog" data-transition = "pop">

 

4. page topic <section data-role = "page" id = "firstview" data-title = "first view" data-theme = "a">

 

<! Doctype html>
<Html>
<Head>
<Meta name = "viewport" content = "width = device-width, initial-scale = 1"/>
<Meta http-equiv = "Content-type" content = "text/html; charset = UTF-8">
<Title> PhoneGap </title>


<Link rel = "stylesheet" href = "jquery.mobile-1.3.1.css">

<Script type = "text/javascript" charset = "UTF-8" src = "jquery-1.9.0.min.js"> </script>
<Script type = "text/javascript" charset = "UTF-8" src = "jquery. mobile-1.3.1.js"> </script>
</Head>
<Body>
<Section data-role = "page" id = "firstview" data-title = "first view" data-theme = "a">
<Header data-role = "header" data-theme = "B"> <Article data-role = "content"> <a href = "# secondview" data-rel = "dialog" data-transition = "pop"> switch to the second View </> </article>
<Footer data-role = "footer" data-theme = "c"> </Section>

<Section data-role = "page" id = "secondview" data-title = "second view">
<Header data-role = "header"> second view <Article data-role = "content"> <a href = "# firstview" data-transition = "flip"> switch to the first View </a> </article>
<Footer data-role = "footer"> footer </footer>
</Section>
</Body>
</Html>

 


 

Related Article

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.