链接,</body> 之间的脚本标签和</html> [英] link, script tags between </body> and </html>

查看:27
本文介绍了链接,</body> 之间的脚本标签和</html>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始使用 SyntaxHighlighter.
我查看了 此页面的 HTML 源代码,并注意到他们放了一些链接和 之间的脚本标签.我想它可以帮助页面更快地显示出来,加上他们新的 autoload 功能.但这是否有效/可以(根据 HTML 验证器,它不是)?它会在某些浏览器中引起任何奇怪的事情吗?

I've just started using SyntaxHighlighter.
I looked at their HTML source code for this page and noticed that they put some link and script tags between </body> and </html>. I guess it helps the page turns up faster plus with their new autoload function. But is that valid/okay (according to the HTML validator, it is not)? will it cause any weird stuff in some browsers?

谢谢

推荐答案

但那是有效的

没有

/好吗?

主观的

它会在某些浏览器中引起任何奇怪的事情吗?

will it cause any weird stuff in some browsers?

令人怀疑,但您不妨将脚本移到 </body> 之前,就像传统的文档结束脚本加载一样.

Doubtful, but you might as well move the script to just before </body> as is traditional for end-of-document script loading.

这篇关于链接,&lt;/body&gt; 之间的脚本标签和&lt;/html&gt;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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