어떤 이유로 SlideToggle이 작동하지 않습니다. 내 목록 'tellusmore'가 표시되도록 설정되었습니다. none 배트를 벗어나서 'tellustoday'클래스를 클릭하면 목록을 slideToggle (표시)로 설정합니다.jQuery slideToggle이 목록 태그에서 작동하지 않습니다.
<div id="tellus">
<h2>Have You Used This Product?</h2>
<span class="tellustoday">Click Here to tell us about it!</span>
<ul class="tellusmore">
<li id="sendreview"><a href="">Write a quick review</a></li>
<li id="sendpicture"><a href="">Send us pictures of your unit</a></li>
<li id="sendvideo"><a href="">Send us a video of your product</a></li>
</ul>
</div>
$(".tellustoday").click(function() {
$('.tellusmore').slideToggle("fast");
});
#tellus {
-moz-border-radius: 4px 4px 4px 4px;
background-color: white;
border: 1px solid #E8E8E8;
line-height: normal;
padding: 15px 6px 15px 6px;
margin-bottom:10px;
}
#tellus h2{
color: #004B6C;
font-size: 20px;
text-transform: uppercase;
font-family: georgia,serif;
text-align: center;
font-weight: bold;
margin:5px 2px;
}
.tellustoday {
color: #004B6C;
text-decoration: underline;
text-transform: none;
font-weight: normal;
font-size: 14px;
cursor: pointer;
}
.tellusmore { display:none; }
사용 가능한 CSS 클래스를 게시 할 수 있습니까? – Nirmal
클릭하면 아무 일도 일어나지 않으십니까? 다른 CSS/스크립트를 방해해야합니다. 게시 한 마크 업과 코드에는 아무런 문제가 없습니다. http://jsfiddle.net/JwuXp/ – DarthJDG
위의 마크 업 CSS를 업데이트했습니다. @DarthJDG 클릭하면 아무 일도 일어나지 않습니다. [데모에 대한 페이지의 오른쪽 중간을 참조하십시오] (http://v725959.htrhdfbkcym2.demo6.volusion.com/True_GDM_49_2_Door_Merchandiser_Refrigerator_p/tru-gdm49.htm) – ToddN