我遇到了一些我无法弄清楚的事情,我想知道你是否可以尝试一下。
首先,有这段代码:
<li class="mc002">
<ul>
<li>
<div class="label-container">
<a class="btn">label 1</a>
<a class="btn">label 2</a>
</div>
<div class="main-container">
<div class="prj-title">
<h3><a href="">New design for my website</a></h3>
<div class="buttons">
<button data-role="none" class="btn smry">summary</button>
</div>
</div>
<div class="summary">
</div>
<div class="prj-footer">
<h6>filed under:</h6>
<span>webdesign, webdevelopment, UX design</span>
<h6>skills:</h6>
<span>html5, css3, javascript, php</span>
</div>
</div>
</li>
以及使“摘要”向下滑动的 JavaScript:
$('.main-container .smry').click(function () {
$(this).closest(".summary").slideToggle(100);
});
问题在于它不起作用。请你帮帮我好吗?