我对那个 HTML 代码有疑问。最父 div (class='question-cont') 执行动画 (jQuery slideToggle()
) 但是,如果我单击IPSUM
文本,该动画也会被执行。如何排除div.answer-data-container
执行该动画?
<div class='question-cont'>
<div class='question-toggle-header'>
<div class='left question-container'>
<label class='label-none orange-font left'>LOREM</label>
</div>
</div>
<div class='clear'></div>
<div class='left answer-data-container slider'>
<div class='q-text'>
<label class='label-none left'>IPSUM</label>
</div>
<div class='clear'></div>