新聞中心
1、采用js方法
創(chuàng)新互聯(lián)是專業(yè)的裕安網(wǎng)站建設公司,裕安接單;提供成都網(wǎng)站設計、成都網(wǎng)站建設,網(wǎng)頁設計,網(wǎng)站設計,建網(wǎng)站,PHP網(wǎng)站建設等專業(yè)做網(wǎng)站服務;采用PHP框架,可快速的進行裕安網(wǎng)站開發(fā)網(wǎng)頁制作和功能擴展;專業(yè)做搜索引擎喜愛的網(wǎng)站,專業(yè)的做網(wǎng)站團隊,希望更多企業(yè)前來合作!
? ?
? ?
? ? ? ? ? document.getElementById("div").innerHTML = '';
? ?
? ? ? ?2、采用apache等服務器,使用include
apache默認不支持SSI,可以通過修改配置文件來使其支持
搜索AddType text/html .shtml的位置,打開以下注釋
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
同時需要找到Options Indexes FollowSymLinks,在其后添上Includes
以上表示支持shtml的include命令,如果還想支持html,則需改為
AddType text/html .shtml .html
AddOutputFilter INCLUDES .shtml .html
使用辦法:
建立A.html文件如下
include ???? ? ?
建立B.html文件如下
網(wǎng)頁名稱:html中靜態(tài)包含公共部分
文章源于:http://fisionsoft.com.cn/article/jisshg.html