ここのサイトでこのスクリプト を使用しています。ですが、リスト アイテム ID 用に jscript が設定されているため、それを安全に 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 -->
誰かが知っていて、それを助けることができれば、それは素晴らしいことです..