English 中文(简体)
不从事iPad和iPod工作的文字标签
原标题:noscript tag not working on iPad and iPod

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>

上述文字在我解脱 Java本时显示以下通知。

enter image description here

我使用上面的标签,但问题在于,如果我把贾瓦文贴在iPad和iPod装置上,那么上面的标签就在网页上显示,而不是显示信息。

iPad和iPod的同一页,显示标签,而不是在短短片后发出通知。

“enterography

iPad 和iPod 或标签的标签问题是否没有得到解决?

最佳回答

我将考虑

<html>
  <head>
    <script>
      document.write( <style>.noScript { display:none }</style> );
    </script>
  </head>
  <body>
    <div class="noScript">Your browser has JS <span style="display:none"> and CSS</span> disabled</div>
  </body>
</html>
问题回答

如果 Java在你的文字中残疾,你就可以掩盖你想要展示的内容。 例如,在 j:

$(document).ready(function(){
    $( .noscript ).hide();
});

This code will not run if the user has Javascript disabled, thus showing your content.

在标签内分发你的文字,应该解决这个问题。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签