2

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

1 回答 1

1

查看有条件加载数据http://24ways.org/2011/conditional-loading-for-responsive-designshttp://adactio.com/journal/4497/http://adactio.com/journal/5042/

于 2012-09-18T17:49:03.310 回答