我正在尝试从 http://www.wowhead.com/hearthstone/tooltips 获取工具提示在我的网站上工作,但它不起作用,所以我尝试了 W3C 验证程序的答案,但我收到以下错误:
错误第 88 行,第 84 列:杂散开始标记脚本。 …//static.wowhead.com/widgets/power.js">var wowhead_tooltips =...
这是我那部分的代码:
<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>
内和 <head>
标签。
最佳答案
当你在</body>
之外的东西时,验证器会给出这个错误.
只要把你的脚本标签移到<body>
里面, 或者将它们保存在 <head>
中.
关于javascript - 杂散开始标记脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19958667/