我有两个 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>