为什么Markup Validator说它在下面的html代码中有错误?
Line 287, Column 80: attributes construct error
…ion" value="set=1&page=2" /><ul><li><a href="http://campusfaithhub.org/vie…
<div id="pagination">
<!-- add this to fix IE whitespace bug. IE sees a space inside an empty div, and applies line-height to it. The div will then be expanded in IE6 (and older) to accommodate this space. There's your gap. Simplest solution is to make sure IE6 understands that the empty div really _is_ empty, by putting a comment inside it and make sure there's no line-break. -->
<input type="hidden" class="last-pagination" value="set=1&page=2" />
<ul>
<li><a href="http://campusfaithhub.org/views/includes/layouts/items_comment.php?set=1&page=1"class="current-pagination" rel="1">1</a></li>
<li><a href="http://campusfaithhub.org/views/includes/layouts/items_comment.php?set=1&page=2" rel="1">2</a></li>
</ul>
</div>
<!--pagination-->
我有一个隐藏的输入字段来存储一些信息。如果我把它拿出来,它仍然会被验证错误!我找不到其他任何东西要修理 - 你能看到我做错了什么吗?谢谢!
答案 0 :(得分:2)
编辑:在查看实际页面的来源后,我看到了这个问题...
<input type="hidden" class="last-pagination" value="set=1&page=2" /><ul><li><a href="http://campusfaithhub.org/views/includes/layouts/items_comment.php?set=1&page=1"class="current-pagination" rel="1">1</a></li><li><a href="http://campusfaithhub.org/views/includes/layouts/items_comment.php?set=1&page=2" rel="1">2</a></li></ul></div>
具体来说: page = 1“class =”current
在结束引号和开始属性标记之间需要一个空格。