如何让我的jQuery幻灯片工作?我怎样才能让这个jquery幻灯片上班?
https://codepen.io/kasiraket/pen/KmKYmL
$(document).ready(function() {
$('#search-icon').click(function() {
$(".search-container").slideToggle("400", function(){
$(".search-container input").toggleClass("show");
});
});
});
@Santi我会upvote你的,但你的解决方案将错过第一次点击。你需要移动显示:无;从搜索容器输入到搜索容器。 –
你是对的,我很抱歉。我删除了我的评论。 – Santi