48

我正在尝试从http://www.wowhead.com/hearthstone/tooltips获取工具提示以在我的网站上工作,但它不起作用,因此我尝试了 W3C 验证器以获取答案,但出现以下错误:

错误第 88 行,第 84 列:Stray start tag script。…//static.wowhead.com/widgets/power.js" > var wowhead_tooltips =…</p>

这是我该部分的代码:

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

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

它在<html>and<head>标签内。

4

1 回答 1

133

当您在外面有东西时,验证器会给出该错误</body>

只需将您的脚本标签移动到里面<body>,或者将它们保留在里面<head>

于 2013-11-13T16:12:51.120 回答