包含代碼在我的PHP文件中的片段看起來像這樣。我的PHP頁面將顯示我的HTML標題包括在Dreamweaver預覽中,但不是在瀏覽器中
<div id="header">
<!--#include virtual="includes/frontpage_header.html" -->
</div>
而且我frontpage_header.html代碼如下所示。
<div style="float: left; width: 30%;"><a href="../index_new.php"><img id="headerlogo" src="../images/DynamicHomes45th.png" alt="Dynamic Homes Logo"/></a>
</div>
<div style="float: left; width: 33%;">
<h1>QUALITY CUSTOM BUILT HOMES</h1>
</div>
<div style="float: right; width: 33%;">
<div id="headernav">
<div id="whybuild">
<h2>WHY BUILD DYNAMIC</h2>
<img src="../images/whybuildicon.png" alt=""/> </div>
<div id="gallery">
<h2>GALLERY</h2>
<img src="../images/galleryicon.png" width="43" height="43" alt=""/>
</div>
</div>
</div>
就像我在標題中所說的那樣,它會顯示在我的Dreamweaver的設計視圖中,但不會顯示在瀏覽器中。我不確定有什麼問題。
因爲它被註釋掉了。 – OllyBarca
Serverside只包含通過支持它們的東西的工作。只需在瀏覽器中打開文件將無法使用。 – castis
@Olylynenefe這就是SSI標籤的外觀。 – castis