0
具體點,我有以下<DIV>:
PHP - 插入內容在HTML
<div class="general">
Some content here
</div>
我希望做一個PHP包括
這是可能在PHP之前?
具體點,我有以下<DIV>:
PHP - 插入內容在HTML
<div class="general">
Some content here
</div>
我希望做一個PHP包括
這是可能在PHP之前?
<?php include "file.php"; ?>
<div class="general">
Some content here
</div>
我需要動態包含它,我沒有獲取頁面主要內容的來源只有標題。 – CLiown 2010-02-11 13:04:01
我不完全明白你在問什麼......你希望用動態加載的內容替換div的內容嗎?如果是這樣,你將需要使用AJAX。 Jquery可能是最簡單的方法。 – Gazler 2010-02-11 13:07:12