动态HTML内容

时间:2012-09-18 17:39:06

标签: javascript jquery html css

我有两个html页面。还有一个ccs文件。我需要知道有没有办法将一个html中div标签内的所有内容复制到任何其他html。例如

Css文件:

#block {
/* some code that doesn't matter */
}

主要HTML:

<div id="block">
Some text inside div called "block" that is need to be showed in any others html pages with the
same div "block"
</div>

子HTML页面:

<div id="block">
Code that's need to be placed once to read all content from div "block"
</div>