Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
查看http://cancerpreventionnetwork.org/participants.shtml,您可以看到标题已在此页面上下拉。如果您单击任何其他页面,则不会像那样删除标题。我已经尝试了一切,但我无法弄清楚是什么原因造成的。
在我看来,这是经典的 UTF8 BOM 编码问题
您需要检查所有源文件并确保它们没有使用 BOM 进行编码。
有很多方法可以删除它。我使用记事本++,但可能有一个自动化工具或一些外壳代码来删除多个文件的 BOM
还有..如果您包含文件(模板),请确保它们之后没有空格或新行?>
?>
祝你好运
当我使用检查元素检查Chrome 中的页面时,我看到了一个额外的text node. 我在源代码中看不到它,但也许你可以?
text node