“<div id="page>
并且<div id="pagecontent">
不显示在我的网页上。在 Firebug 中,“脚本”选项卡显示 index.php 中包含这两个 div,但 HTML 选项卡不显示任何一个 div。为什么?
所有内容都是由 PHP 生成的,除了这两个 div 之外,所有内容都正确显示在页面上。两个 div 都紧跟在<body>
标签之后。可以在此处找到存在此问题的活动网站。
HTML 文档:
<?php include "topofpage.php" ?>
<!--Main Content Area-->
<div id="main">
<!-- TABLE HTML GOES HERE, BUT IT'S KINDA LONG AND BORING AND THE PROBLEM ISN'T HERE SO I TOOK IT OUT -->
<!--Copyright Notice-->
<p><br />
<div id="divdate">© 2009-2025 Poet Slam. All rights reserved.</div><br />
<script type="text/javascript">
var divisiondate=document.getElementById("divdate"); var newdater=new Date(); var years=newdater.getFullYear(); divisiondate.innerHTML="© 2013-"+years+" Poet Slam. All rights reserved.";
</script>
</div> <!-- THIS CLOSES THE <DIV ID="PAGECONTENT"> CREATED IN THE EXTERNAL PHP FILE
</div> <!--THIS CLOSES THE <DIV ID="PAGE"> CREATED IN THE EXTERNAL PHP FILE
</body>
</html>