我需要将这些header_top隐藏在页面的开头
I need that these header_top will be hidden at start of page
我需要在页面开始时隐藏这些header_top,请帮助
var header_top = jQuery('#header-top-wrapper');
var header_top_button = jQuery('#header-wrapper a.accordion').addClass('active');
var header_top_height = header_top.height();
header_top_button.click(function() {
if(header_top_button.hasClass('active')) {
header_top_button.removeClass('active');
header_top.css({'overflow': 'hidden'});
header_top.stop(true, false).animate({"height": "0px"}, 500, function(){
});
}
else {
header_top.stop(true, false).animate({"height": header_top_height + "px"}, 500, function(){
header_top_button.addClass('active');
header_top.css({'overflow': 'visible'});
});
}
});
最好添加一个css样式:
#header-top-wrapper {
display:none;
}
然后用javascript 显示
相关文章:
- 在单击任何位置时隐藏元素,而不检查每次DOM单击
- 显示5秒后隐藏潜水
- 在不使用JQuery的情况下隐藏DOM中的选定元素
- 剑道UI内联编辑:如何在点击其他按钮时隐藏按钮
- 浮动页脚栏-使用Bootstrap隐藏
- 在jquery中为显示/隐藏设置cookie
- 单击按钮后如何逐个调用分区,上一个分区将隐藏
- 从var向代码隐藏函数传递值
- Image赢得't隐藏在滚动jQuery上
- 具有rowGrouping的数据表无法隐藏列
- Jquery隐藏未触发
- JavaScript 检查隐藏字段中的值并将其设置为隐藏字段值
- 分部隐藏在jquery中不起作用
- 对id以某个字符串开头的元素进行计数
- 如何隐藏所有以相同单词开头的 DIV,但一个具有特定值的 DIV 除外
- 隐藏文本块的开头,溢出:隐藏
- 获取所有以“”开头的元素;隐藏”;
- 我需要将这些header_top隐藏在页面的开头
- 弹出框显示在开头,但应隐藏
- 如果Dgrid的id以数字开头,则Dgrid列调整大小,隐藏,重新排序属性会产生错误