0
我的jQuery的幻灯片没有滑动,它真的只是出现。我可以看到动画,如果我做.show,但我希望它从上到下出现。我曾尝试用相同的结果如下(只显示出来,没有动画):jQuery的幻灯片没有滑动
$(document).ready(function() {
$('#aboutLink').click(function() {
console.log("click");
$('#content').slideDown(3000);
});
});
和
$(document).ready(function() {
$('#aboutLink').click(function() {
console.log("click");
$('#content').slideDown('slow');
});
});
CSS:
.content {
background-color:#E8E8E8;
min-height:700px;
margin-left:22px;
margin-right:auto;
border-radius: 0px 0px 10px 10px;
-moz-border-radius: 0px 0px 10px 10px;
-webkit-border-radius: 0px 0px 10px 10px;
display:none;
}
HTML
<div class="grid_11 content" id="content">
</div>
是在CSS? – Yecats
@Yecats。检查编辑 –
啊,这是做到了。我如何处理它,以便在内容填充时动态更改高度? – Yecats