Basic Page Construction
<!DOCTYPE HTML><HTML><Head><Linkrel= "stylesheet"href= "Http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css"><Scriptsrc= "Http://code.jquery.com/jquery-1.8.3.min.js"></Script><Scriptsrc= "Http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></Script></Head><Body><DivData-role= "page"> <DivData-role= "header"> <H1>Header</H1> </Div> <DivData-role= "Content"> <P>Content</P> </Div> <DivData-role= "Footer"> <H1>Footer</H1> </Div></Div> </Body></HTML>
Multi-page
Use the page as a dialog box: data-rel= "Dialog"-line31
Set transition effect: Data-transition-line17
1 <!DOCTYPE HTML>2 <HTML>3 <Head>4 <Linkrel= "stylesheet"href= "Http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css">5 <Scriptsrc= "Http://code.jquery.com/jquery-1.8.3.min.js"></Script>6 <Scriptsrc= "Http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></Script>7 </Head>8 <Body>9 Ten <DivData-role= "page"ID= "Page1"> One <DivData-role= "header"> A <H1>Header</H1> - </Div> - the <DivData-role= "Content"> - <!--go to external page using href= "xxx.html" - - <ahref= "#page2"data-transition= "Slide">Go to Page Two</a> - </Div> + - <DivData-role= "Footer"> + <H1>Footer</H1> A </Div> at </Div> - - <DivData-role= "page"ID= "Page2"> - <DivData-role= "header"> - <H1>Header</H1> - </Div> in - <DivData-role= "Content"> to <ahref= "#dialog1"Data-rel= "Dialog">Popup dialog box</a> + </Div> - the <DivData-role= "Footer"> * <H1>Footer</H1> $ </Div>Panax Notoginseng </Div> - the <DivData-role= "page"ID= "Dialog1"> + <DivData-role= "header"> A <H1>Header</H1> the </Div> + - <DivData-role= "Content"> $ <ahref= "#page1">Go to Page One</a> $ </Div> - - <DivData-role= "Footer"> the <H1>Footer</H1> - </Div>Wuyi </Div> the - </Body> Wu </HTML>
JQuery Mobile Basic Notes