jQuery隐藏预加载 [英] jquery hidden preload

查看:93
本文介绍了jQuery隐藏预加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的页面 http://equipe94.com/2009e.html

页面上有一些tweek(滚动条和箭头)和一些定位

there is some tweek that append to the page (scroller and arrows)and some positionning

您是否有办法完全隐藏所有内容(仅保留背景)..做这些事情,并显示完成的页面?

Do you have a way, to completely hide everything (just keep the background).. do the things , and show up the finished page ?

推荐答案

为什么不只将css display属性设置为none,并在加载文档后用JS对其进行更改?如果您在页面上使用 jQuery ,它可能看起来像这样:

Why not just set the css display property to none, and change it with JS when the document has loaded? If you're using jQuery on your page, it could look like this:

CSS:

#mydiv { display: none; }

JavaScript:

JavaScript:

$(document).ready(function() {
    $('#mydiv').show();
});

这篇关于jQuery隐藏预加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆