CSS - 选择器的使用不正确? [英] CSS - incorrect using of Selectors?

查看:197
本文介绍了CSS - 选择器的使用不正确?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我现在使用jQuery的代码。 1.小提示我想要的是创建相同的场景,而不 jQuery。这是我结束了。 2。 fiddle。

任何人都可以指出我在这里做错了吗? (就我所能想到的,我的问题是与 CSS选择器

This is the code I have right now with jQuery. 1.fiddle. What I want is to create the same scenario without jQuery. This is where I ended up. 2. fiddle.
Can anyone point out what I have done wrong here?? (As far as I can think of, my problem is with the CSS Selectors)

谢谢。 p>

Thank you.

推荐答案

HTML中没有 .hide()方法。要隐藏元素,请将显示样式设置为 none

The is no .hide() method in HTML. To hide an element, set the display style to none.

setTimeout(function()
{
    document.getElementById("blocker").style.display = "none";
}, 3000);

此外,原来的CSS可以在没有jQuery的情况下工作。

Also, the original CSS can work without jQuery.

这篇关于CSS - 选择器的使用不正确?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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