简体   繁体   English

杂散开始标记脚本

[英]Stray start tag script

I'm trying to get a tooltip from http://www.wowhead.com/hearthstone/tooltips to work on my site but it doesn't work so I tried the W3C validator for answers and I got the following error:我试图从http://www.wowhead.com/hearthstone/tooltips获取工具提示以在我的网站上工作,但它不起作用,所以我尝试了 W3C 验证器以获得答案,但出现以下错误:

Error Line 88, Column 84: Stray start tag script .错误第 88 行,第 84 列:杂散开始标记脚本 …//static.wowhead.com/widgets/power.js" > var wowhead_tooltips =… …//static.wowhead.com/widgets/power.js" > var wowhead_tooltips =…

Heres my code of that section:这是我的那部分代码:

<script type="text/javascript" src="http://static.wowhead.com/widgets/power.js"> </script>

<script> var wowhead_tooltips = { "colorlinks": true, "iconizelinks": true, "renamelinks":       true } </script>

And it's within the <html> and <head> tags.它位于<html><head>标签内。

Validator gives that error when you've something outside </body> .当您在</body>之外有东西时,验证器会给出该错误。

Just move your script tags inside <body> , or keep them in <head> .只需将您的脚本标签移动到<body> ,或者将它们保留在<head>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM