jquery mobile 摺疊效果演示原始碼
阿新 • • 發佈:2018-12-23
<html>
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1" name="viewport">
<title>jquery隱藏內容測試</title>
<link href="http://code.jquery.com/mobile/1.0b3/jquery.mobile-1.0b3.min.css" rel="stylesheet"></link>
<script src="http://code.jquery.com/jquery-1.6.3.min.js" ></script>
<script src="http://code.jquery.com/mobile/1.0b3/jquery.mobile-1.0b3.min.js"></script>
</head>
<body>
<div data-role="page" id="home">
<div data-role="header">
<h1>測試jquery </h1>
</div>
<div data-role="content">
<div data-role= "collapsible-set">
<div data-role="collapsible" data-collapsed="false">
<h3>隱藏集合 A</h3>
<p>隱藏集合內容A.</p>
</div>
<div data-role="collapsible">
<h3>Section B</h3>
<p>I'm the collapsible set content for section B.</p>
</div>
<div data-role="collapsible">
<h3>Section B</h3>
<p>I'm the collapsible set content for section B.</p>
</div>
<div data-role="collapsible">
<h3>Section B</h3>
<p>I'm the collapsible set content for section B.</p>
</div>
<div data-role="collapsible">
<h3>Section B</h3>
<p>I'm the collapsible set content for section B.</p>
</div>
</div>
<div data-role="collapsible" data-state="collapsed">
<h5><span style="color:#f00;"> 好友:</span> 中文測試,哈哈!<div class="ui-grid-a">
<div class="ui-block-a"><strong>I'm Block A</strong> and text inside will wrap</div>
<div class="ui-block-b"><strong>I'm Block B</strong> and text inside will wrap</div>
</div></h5>
<p style="color:#f00;">中文測試,哈哈!</p>
<p>中文測試,哈哈哈哈!</p>
</div>
<div data-role="collapsible" data-state="collapsed">
<h5>About<color="red"> this app</color></h5>
<p>This app rocks!</p>
<p>This app rocks!</p>
</div>
</div>
</div>
</body>
</html>