css - 显示:none not working on <noscript> tag in IE7 or IE8

标签 css internet-explorer-8 internet-explorer-7 noscript

我有以下标签,可以在除 IE 7 和 IE8 之外的每个“现代”浏览器中正常运行。

<style type="text/css">
    noscript.show {
        display:inline;
    }
    noscript.hide {
        display:none;
    }
</style>
<noscript class="hide">Javascript is currently disabled in your browser.</noscript>

IE 可以在 noscript 标签上处理这个问题吗?如果是这样,怎么办?

最佳答案

也许我只是不喜欢这个标签,您可以尝试以下操作:

<style type="text/css">
    p.show {
        display:inline;
    }
    p.hide {
        display:none;
    }
</style>
<noscript><p class="hide">Javascript is currently disabled in your browser.</p></noscript>

关于css - 显示:none not working on <noscript> tag in IE7 or IE8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4961088/

相关文章:

javascript - 如何让HTML的title属性停留更长时间

html导航dom,如何?

internet-explorer-8 - 以为 IE 8 会正确解释盒子模型......我错过了什么吗?

jquery - IE8 : jQuery append not working

html - 当我在导航中有两个 ul 时,如何避免在 IE7 中换行?

javascript - 使用加载更多按钮将所选类循环到 ul > li

xhtml - 如果我正在为 iphone、android、黑莓制作一个简单的移动网站,我是否需要为媒体 ="handheld"指定 CSS 并使用 CSS 媒体查询?

jquery - IE8 不会使用 JQuery 和 html5shiv 设置Figcaption 元素的样式

jquery - 在 IE7 中为 jquery ganttView 使用 css

internet-explorer-7 - ProLoser AnythingSlider 在 IE7 中的主背景图像问题