关闭

回退练习

920人阅读 评论(0) 收藏 举报

index.html

<!DOCTYPE html>
<html>
<head>
 <title>jQuery Mobile: Demos and Documentation</title>
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <link rel="stylesheet"  href="importFile/jquery.mobile-1.0.1.min.css" />
 <script src="importFile/jquery.js"></script>
 <script src="importFile/jquery.mobile-1.0.1.min.js"></script>
 
 <script language ="javascript" >
     function selectPerson(obj) {
         //$("#ee").append("<div data-role='collapsible' data-collapsed='true' class='info'><ul data-role='listview' data-inset='true'  class='detail'> </ul><ul data-role='listview' data-inset='true'  class='detail'></ul></div>").trigger("create");
         var id = $(obj).prev().attr("id");
    
         var divObj = document.createElement("div");
         divObj.id = "slectPersonPage";
         divObj.setAttribute("data-role", "page");
         divObj.setAttribute("targetSelPer", id);

         var divHead = document.createElement("div");
         divHead.setAttribute("data-role", "header");
         divHead.innerHTML = "<h1>Page Title</h1>";

         var divContent = document.createElement("div");
         divContent.setAttribute("data-role", "content");
         divContent.innerHTML = "<input type ='text' value='王明' /><a onclick='post(this)' data-role='button'>提交</a>"

         divObj.appendChild(divHead);
         divObj.appendChild(divContent);
        
         document.body.appendChild(divObj);

         $("#slectPersonPage").trigger("create");
        
         //alert(document .body .innerHTML);         
         //alert($("#slectPersonPage")[0].innerHTML);
     }

     function post(obj) {
         var val = $(obj).prev().val();
        
         var tarId = $(obj).parents("div[targetSelPer]").attr("targetSelPer");

         $("#" + tarId).val(val);

         $(obj).parents("div[targetSelPer]").dialog('close')
     }
 </script>
 
</head>
<body>

<div data-role="page" class="type-home" id="mainPage">
 <div data-role="content">
   <ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="b">
    <li><a href="dbgw.html"  data-ajax="false">代办公文页面</a></li>
    <li><a href="0325.html"  data-ajax="false">练习</a></li>
   </ul>
   
   <br />
   
   <table>
       <tr>
           <td>人员选框</td>
           <td>
               <span>
                   <input type ="hidden" />
                   <input id="selectPerson1" type ="text" />
                   <a href ="#slectPersonPage" onclick ="selectPerson(this)" data-rel="dialog" data-direction="slidedown"><img src="importFile/2012-03-24_085415.png" /></a>
               </span>
           </td>
       </tr>
   </table>

 </div>
</div>

<!--<div data-role="page" id="test">
    <div data-role="header">
    <h1>Page Title</h1>
</div>

</div>-->
 
</body>
</html>

 

 

dbgw.html

<!DOCTYPE html>
<html>
<head>

 
 <title>jQuery Mobile: Demos and Documentation</title>
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <link rel="stylesheet"  href="importFile/jquery.mobile-1.0.1.min.css" />
 <script src="importFile/jquery.js"></script>
 <script src="importFile/jquery.mobile-1.0.1.min.js"></script>
 
</head>
<body>

<div data-role="page" class="type-home">
 
 <div data-role="header" data-position="inline">  
  <a href="cancel.html" data-icon="delete">Cancel</a>  
  <h1>Edit Contact</h1>  
  <a href="save.html" data-icon="check">Save</a>
 </div>

 <div data-role="content">
       <div>
        <a href="" data-rel="back" data-iconpos="notext" class ="ui-btn-right back">返回</a>
    </div>
        <div>
            代办公文数据
        </div>
 </div>
 
 <pre class="brush:html;gutter:false;">
 <div data-role="navbar">  
  <ul>     
   <li><a href="#nav1" class="ui-btn-active">One</a></li>     
   <li><a href="#nav2">Two</a></li>  
  </ul>
 </div><!-- /navbar -->
</div>

</body>
</html>

 

0325.html

<!DOCTYPE html>
<html>
<head>

 
 <title>jQuery Mobile: Demos and Documentation</title>
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <link rel="stylesheet"  href="importFile/jquery.mobile-1.0.1.min.css" />
 <script src="importFile/jquery.js"></script>
 <script src="importFile/jquery.mobile-1.0.1.min.js"></script>
 
</head>
<body>
<div data-role="page" id="ff" data-position="fixed">
<div data-role="header" data-position="fixed">
      <h1>Navigation</h1>
   </div><!-- /header -->
   <div data-role="content" >
      <ul data-role="listview" data-dividertheme="d" style="margin-top: 0;">
      <li><a href="#nav1">Henry VIII <span class="ui-li-count">Reign 37 Years</span></a></li>
      <li><a href="#nav1">George V <span class="ui-li-count">Reign 25 Years</span></a></li>
      <li><a href="#nav1">Prince of Wales <span class="ui-li-count">N/A</span></a></li>
     <li><a href="#nav1">Elizabeth I <span class="ui-li-count">Reign 44 Years</span></a></li>
      <li><a href="#nav1">Elizabeth II<span class="ui-li-count">Reign since 1952</span></a></li>
         <li data-role="list-divider">Prime Miniseters</li>
         <li><a href="#nav2">Winston Churchill</a></li>
         <li><a href="#nav2">Tony Blare</a></li>
         <li><a href="#nav2">David Cameron</a></li> <li><a href="#nav1">Prince of Wales</a></li>
         <li><a href="#nav1">Elizabeth I</a></li>
         <li><a href="#nav1">Elizabeth II</a></li>
         <li data-role="list-divider">Prime Miniseters</li>
         <li><a href="#nav2">Winston Churchill</a></li>
         <li><a href="#nav2">Tony Blare</a></li>
         <li><a href="#nav2">David Cameron</a></li> <li><a href="#nav1">Prince of Wales</a></li>
         <li><a href="#nav1">Elizabeth I</a></li>
         <li><a href="#nav1">Elizabeth II</a></li>
         <li data-role="list-divider">Prime Miniseters</li>
         <li><a href="#nav2">Winston Churchill</a></li>
         <li><a href="#nav2">Tony Blare</a></li>
         <li><a href="#nav2">David Cameron</a></li>
      </ul>
   </div><!-- /content -->
<div data-role="footer" data-position="fixed">
   <div data-role="navbar">
      <ul>
         <li><a href="#nav1" class="ui-btn-active">Royals</a></li>
         <li><a href="#nav2">Leaders</a></li>
      </ul>
   </div><!-- /navbar -->
</div><!-- /footer -->
</div><!-- /page -->
<div data-role="page" id="nav1" data-position="fixed">
   <div data-role="header">
      <h1>Royal Family</h1>
   </div><!-- /header -->
<div data-role="content">
<p>Members and relatives of the British Royal Family historically represented the monarch in various places throughout the British Empire, sometimes for extended periods as viceroys, or for specific ceremonies or events. Today, they often perform ceremonial and social duties throughout the United Kingdom and abroad on behalf of the UK, but, aside from the monarch, have no constitutional role in the affairs of government. This is the same for the other realms of the Commonwealth though the family there acts on behalf of, is funded by, and represents the sovereign of that particular state, and not the United Kingdom.</P>
</div><!-- /content -->
   <div data-role="footer" data-position="fixed">
      <h4>Royal Family</h4>
   </div><!-- /header -->
</div><!-- /page -->
<div data-role="page" id="nav2" data-position="fixed">
   <div data-role="header">
      <h1>Prime Ministers</h1>
   </div><!-- /header -->
<div data-role="content">
The Prime Minister of the United Kingdom of Great Britain and Northern Ireland is the Head of Her Majesty's Government in the United Kingdom. The Prime Minister and Cabinet (consisting of all the most senior ministers, who are government department heads) are collectively accountable for their policies and actions to the Sovereign, to Parliament, to their political party and ultimately to the electorate. The current Prime Minister, David Cameron, was appointed on 11 May 2010.</div><!-- /content -->
<div data-role="footer" data-position="fixed">
   <h4>Prime Minister</h4>
      </div><!-- /header -->
   </div><!-- /page -->

</body>
</html>

 

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:1194285次
    • 积分:11625
    • 等级:
    • 排名:第1377名
    • 原创:194篇
    • 转载:239篇
    • 译文:0篇
    • 评论:107条
    文章分类
    最新评论