これでは意味がありません。シンプルな折りたたみ可能なセットを使用して、スタイルを解除し、リンクなどの色を変更しようとしています。最初のタスク - アイコンを変更し、左ではなく右に移動します。data-iconpos="right"
以前と同じ方法で使用しようとしていますdata-collapsed="true"
が、うまくいかないようです。a、b、cではなく、テーマの変更のように、そのような所定のjQueryデータ関数は機能していないようです。ここで何が欠けていますか?ドキュメントによると、これは非常に簡単なはずです。
ライブ ビュー: https://www.ubat.com/mobile/test.html
ページコード:
<!DOCTYPE html>
<html>
<head>
<title>My Page</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/jquery.mobile-1.0a3.min.css" rel="stylesheet" type="text/css"/>
<script src="css/jquery-1.5.min.js" type="text/javascript"></script>
<script src="css/jquery.mobile-1.0a3.min.js" type="text/javascript"></script>
<script type="text/javascript" src="//use.typekit.net/kxv5fxv.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
</head>
<body>
<div data-role="page">
<div data-role="header">
<h1>My Title</h1>
</div>
<!-- /header -->
<div data-role="content">
<p>Hello world</p>
<div data-role="collapsible-set">
<div data-role="collapsible" data-collapsed="true" data-iconpos="right">
<h3>Section 1</h3>
<p>I'm the collapsible set content for section 1.</p>
</div>
<div data-role="collapsible" data-collapsed="true">
<h3>Section 2</h3>
<p>I'm the collapsible set content for section 2.</p>
</div>
</div>
</div>
<!-- /content -->
</div>
<!-- /page -->
</body>
</html>