如何在chrome的noscript标签中显示html? [英] How do I display html within chrome's noscript tag?

查看:199
本文介绍了如何在chrome的noscript标签中显示html?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在Chrome浏览器中查看 noscript 时,我看到原始HTML在关闭JavaScript时显示。 这:

 <!DOCTYPE html> 
< head>< / head>
< body>
< noscript>
< div>无Javscript< / div>
< / noscript>
< / body>

将会显示:

 < div>否Javscript< / div> 

这用于工作,所以我猜想有一个回归,但我找不到网络上的任何事情。在其他浏览器(safari,firefox)中,我没有看到HTML。我在OS X 10.7.5上使用Chrome 26.0.1410.43

解决方案

刷新页面两次可解决此问题。

>

它只会在您第一次切换到禁用javascript时出现(即,禁用JavaScript的用户浏览过的用户不会体验到这一点)


When I view noscript in Chrome I'm seeing raw html displayed when JavaScript is turned off.

This:

<!DOCTYPE html>
<head></head>
<body>
<noscript>
    <div>No Javscript</div>
</noscript>
</body>

Will display:

<div>No Javscript</div>

This used to work, so I'm guessing there was a regression, but I can't find anything about it on the web. In other browsers(safari, firefox), I don't see the HTML. I'm using Chrome 26.0.1410.43 on OS X 10.7.5

解决方案

Refreshing the page twice fixes this issue.

And it only appears when you first switch to disabling javascript (i.e. someone who browses with javascript disabled would not experience it)

这篇关于如何在chrome的noscript标签中显示html?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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