2

I have the following tag that functions properly in each of the "modern" browsers except IE 7 and 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>

Can IE handle this on the noscript tag? If so, how?

4

1 回答 1

5

也许 IE 只是不喜欢这个标签,你可以尝试以下方法:

<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>
于 2011-02-10T18:31:16.020 回答