由于某种原因,我无法让我的SlideToggle正常工作。我的列表'tellusmore'被设置为显示:没有任何权利的蝙蝠,当你点击类'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 2011-05-03 12:57:45
单击时发生了什么?必须有其他一些CSS /脚本干扰,您发布的标记和代码没有任何问题:http://jsfiddle.net/JwuXp/ – DarthJDG 2011-05-03 12:59:58
我已经使用标记的CSS更新了上述内容。 @DarthJDG点击时没有任何事情发生。 [见右下方示范页面中间](http://v725959.htrhdfbkcym2.demo6.volusion.com/True_GDM_49_2_Door_Merchandiser_Refrigerator_p/tru-gdm49.htm) – ToddN 2011-05-03 13:03:09