Jquery-mobile-collapsible-set-corners
提供:Dev Guides
角の丸い折りたたみセット
説明
角の丸いスタイリングなしで差し込みセットを取得するには、 _ data-corners_ 属性を追加して_false_に設定します。
例
次の例は、jQuery Mobileでの角の丸くない_collapsibleセットの使用を示しています。
<!DOCTYPE html>
<html>
<head>
<title>Collapsible set without rounded corners</title>
<meta name = "viewport" content = "width = device-width, initial-scale = 1">
<link rel = "stylesheet" href = "https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
<script src = "https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src = "https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
</head>
<body>
<div data-role = "collapsibleset" data-corners = "false" data-theme = "a"
data-content-theme = "a">
<div data-role = "collapsible">
<h3>Heading 1</h3>
<p>This is collapsible content</p>
</div>
<div data-role = "collapsible">
<h3>Heading 2</h3>
<p>This is collapsible content</p>
</div>
<div data-role = "collapsible">
<h3>Heading 3</h3>
<p>This is collapsible content</p>
</div>
</div>
</body>
</html>
出力
上記のコードがどのように機能するかを確認するために、次の手順を実行してみましょう-
- 上記のhtmlコードを collapsible_set_cornersl ファイルとしてサーバーのルートフォルダーに保存します。
- このHTMLファイルをhttp://localhost/collapsible_set_cornerslとして開くと、次の出力が表示されます。