简体   繁体   English

jQuery:隐藏的可见性选择器在Firefox 3.6中不起作用

[英]jQuery: hidden visibility selector does not work in Firefox 3.6

<html>
    <script src="../jquery.js" type="text/javascript"></script>
    <body>
    </body>
    <script type="text/javascript">
        $(":hidden").show();
    </script>
</html>

Firefox 3.6 would show $(":hidden").show(); Firefox 3.6将显示$(":hidden").show(); , but IE 8.0 works fine. ,但IE 8.0可以正常工作。 Is this a bug? 这是一个错误吗?

PS: I'm using jquery 1.4.2. PS:我正在使用jQuery 1.4.2。

Thanks. 谢谢。

Probably because it is outside the closing body tag, ie </body> . 可能是因为它在结束body标签之外,即</body>

Why is it there? 为什么会这样?

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

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