我正在为 jQuery 使用 Kwicks 进行垂直下拉:http: //www.jeremymartin.name/projects.php? project=kwicks
看一下标记:
<ul class="kwicks">
<li id="kwick1">
<div class="title">Title 1</span>
<div class="item"><b>Item 1</b> Description 1</div>
<div class="item"><b>Item 2</b> Description 2</div>
<div class="item"><b>Item 3</b> Description 3</div>
<div class="item"><b>Item 4</b> Description 4</div>
</li>
<li id="kwick2">
<div class="title">Title 2</span>
<div class="item"><b>Item 1</b> Description 1</div>
<div class="item"><b>Item 2</b> Description 2</div>
<div class="item"><b>Item 3</b> Description 3</div>
<div class="item"><b>Item 4</b> Description 4</div>
<div class="item"><b>Item 5</b> Description 5</div>
<div class="item"><b>Item 6</b> Description 6</div>
</li>
<li id="kwick3">
<div class="title">Title 3</span>
<div class="item"><b>Item 1</b> Description 1</div>
<div class="item"><b>Item 2</b> Description 2</div>
</li>
<li id="kwick4">
<div class="title">Title 4</span>
<div class="item"><b>Item 1</b> Description 1</div>
<div class="item"><b>Item 2</b> Description 2</div>
<div class="item"><b>Item 3</b> Description 3</div>
<div class="item"><b>Item 4</b> Description 4</div>
</li>
</ul>
Javascript:
$().ready(function() {
$('.kwicks').kwicks({
min : 15,
spacing : 9,
isVertical : true,
sticky : true,
event : 'click'
});
});
在这里看到它:http: //jsfiddle.net/6xL5M/3/
如您所见,它们具有不同的内容大小,并且默认情况下,jQuery 的 Kwicks 都以相同的大小显示,难道没有办法让每个人都有自己的高度吗?
非常感谢提前。