简体   繁体   English

页眉和页脚自动隐藏

[英]Page header and footer auto hide

如何自动隐藏页面的页眉和页脚,以及如何通过将鼠标光标移到其中之一来显示它。

using jQuery you could do it like this: 使用jQuery,您可以这样做:

http://return-true.com/2010/03/creating-a-slide-up-footer-using-jquery/ Demo here: http://return-true.com/examples/SlidingFooterExample.html http://return-true.com/2010/03/creating-a-slide-up-footer-using-jquery/此处的演示: http : //return-true.com/examples/SlidingFooterExample.html

He's done it using onclick, you could easily change it to mouseover. 他使用onclick完成了此操作,您可以轻松地将其更改为鼠标悬停。

i am not know what you want but i have a small solution that you need. 我不知道您想要什么,但是我有一个您需要的小解决方案。

hide the header footer after some sec on page load. 在页面加载几秒钟后隐藏页眉页脚。 and show the header and footer when user mouseover the top or bottom ' spaces where we still omit a object or space [blank area]. 并在用户将鼠标悬停在顶部或底部的空白处(我们仍然忽略对象或空白处[空白区域])时显示页眉和页脚。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM