2012-09-18 198 views
2

我有兩個html頁面。和一個ccs文件。我需要知道是否有任何方法可以將一個html中的div標籤中的所有內容複製到任何其他html中。例如動態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> 
+0

從ajaxcall調用頁面,然後解析後放入其他 –

回答