Noscript标签在iPad和iPod上不起作用 [英] noscript tag not working on iPad and iPod

查看:85
本文介绍了Noscript标签在iPad和iPod上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在母版页头部分使用了noscript标签,当在客户端浏览器上禁用脚本时,该消息会显示一条消息,该脚本可在Windows Phone和Mac PC等所有设备上运行,但是当我禁用iPad和iPod时,它将在iPad和iPod上显示html标签来自浏览器的JavaScript,但刷新页面后会显示一条消息,我已将其放置在noscript标记中.我不明白这是做什么用的,有人解决方案吗?在此先感谢!

I have used noscript tag on master page head section which shows a message when scripting is disabled on clients browser its working on all device like windows phone and mac PC but, it is show html tags on iPad and iPod when I disable the JavaScript from browser but after refreshing the page it shows the message which one I have placed in noscript tag. I could not understand what is it for, is there anyone have solution ? thanks in advance!

 <noscript>
    <div class="notify-container" id="Div1">
        <div id="Div2">
            <span class="notify-close" id="Span1"></span><span class="notify-text" id="Span2">
                <asp:Label runat="server" ID="JavascriptNotEnabledNotification"></asp:Label></span>
        </div>
    </div>
</noscript>


我正在使用上面的标签,它以正确的方式工作,但是问题是,当我在iPad和iPod设备上禁用JavaScript时,上面的标签会显示在页面上,而不是显示消息.


是iPad和iPod中的noscript标签问题,还是标签没有获得CSS?


[edit]已添加代码块,将我的内容作为纯文本..."选项已禁用-OriginalGriff [/edit]


I am using above tags, it is working in right manner but problem is that when I disable the JavaScript on iPad and iPod devices then above tags are showing on page, instead of showing message.


is it noscript tag problem in iPad and iPod or tags are not getting css ?


[edit]Code block added, "Treat my content as plain text..." option disabled - OriginalGriff[/edit]

推荐答案

听起来有些可疑.

我可以想到的只是一件事:您确定您没有正确尝试使用脚本浏览器选项吗?在您允许或禁止使用脚本之类的东西之后,您可能忘记了重新加载页面.请检查一下.您应该先确保浏览器允许或不允许脚本,然后使用"noscript"标签加载此页面.

—SA
It sounds a bit suspicious to believe.

I can think of just one thing: are you sure you experimented with no script browser option correctly? You might have forgotten to reload the page after you allowed or disallowed scripts or something like that. Please check up. You should make sure the scripts are allowed or not allowed by the browser first, and then load this page with "noscript" tag.

—SA


这篇关于Noscript标签在iPad和iPod上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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