jquery-ui/demos/accordion/fillspace.html
2008-12-29 18:00:36 +00:00

60 lines
2.0 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<title>jQuery UI Accordion - FillSpace Demo</title>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<link type="text/css" href="../../themes/default/ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="../../jquery-1.2.6.js"></script>
<script type="text/javascript" src="../../ui/ui.core.js"></script>
<script type="text/javascript" src="../../ui/ui.accordion.js"></script>
<script type="text/javascript">
$(function() {
$("#accordion").accordion({
header: "h3",
fillSpace: true,
});
});
</script>
</head>
<body>
<div id="accordion" style="width: 250px; height: 280px">
<div>
<h3><a href="#">Section 1</a></h3>
<div>
<p>In this example, the fillSpace option is used to make the accordion fit within a specific height and/or width. The script will automatically set the dimensions of the accordion sections and add scrollbars as needed.</p>
<pre>fillSpace: true</pre>
</div>
</div>
<div>
<h3><a href="#">Section 2</a></h3>
<div>
<p>Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In suscipit faucibus urna. </p>
</div>
</div>
<div>
<h3><a href="#">Section 3</a></h3>
<div>
<p>Nam enim risus, molestie et, porta ac, aliquam ac, risus. </p>
<ul>
<li>List item one</li>
<li>List item two</li>
<li>List item three</li>
</ul>
<p>Maecenas faucibus, magna vel condimentum venenatis, magna urna pretium erat, vel suscipit orci dui non sapien.</p>
</div>
</div>
<div>
<h3><a href="#">Section 4</a></h3>
<div>
<p>Cras dictum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia mauris vel est. Morbi vestibulum est non libero.</p>
</div>
</div>
</div>
</body>
</html>