我在我的网站上使用这个脚本。 ,但是因为 jscript 是为列表项 id 设置的,所以我不太确定如何安全地将其更改为 div。
我知道这很简单,所以任何能够指导我的人将不胜感激!
所有代码都在前一页上,高度调整位是这样的:
// Adjust outer wrapper to fit new list snuggly
var newHeight = base.$el.find("#"+listID).height();
$allListWrap.animate({
height: newHeight
});
我只是将列表项更改为 div 和 ps:
<div class="list-wrap">
<div id="featured">
<p>Stuff in here!</p>
</div>
<div id="core" class="hide">
<p>hello</p>
</div>
<div id="jquerytuts" class="hide">
<p>Stuff in here!</p>
</div>
<div id="classics" class="hide">
<p>Stuff in here!</p>
</div>
<div id="link" class="hide">
<p>Stuff in here!</p>
</div>
</div> <!-- END List Wrap -->
如果有人知道并可以提供帮助,那就太好了..