老夫個人雜記, 基於創用CC(Creative Commons)精神歡迎分享資料
Taiwan / Repulic of CHINA / ROC ( Traditional Chinese ).
2009-12-16
html/Javascript/servlet(JSP) include
js/javascript
<SCRIPT src="include.js">< /SCRIPT>
iframe
<iframe src="xxx.html" id="iframe1" onload="this.height=iframe1.document.body.scrollHeight+20;this.width=iframe1.document.body.scrollWidth+20">< /iframe>
<iframe src="被嵌入的 HTML 檔案路徑" height="xxx" width="xxx" scrolling="yes"></iframe>
<IFRAME NAME="content_frame" width=100% height=30 marginwidth=0 marginheight=0 SRC="import.htm" ></IFRAME>
你会看到外部引入的文件,但会发现有一个类似外框的东西将其包围,可使用
<iframe name="content_frame" marginwidth=0 marginheight=0 width=100% height=30 src="import.htm" frameborder=0></iframe>
<XML SRC="">< /XML>
<LINK rel="text/stylesheet" src="">
JSP
include in HEAD or BODY
<%@ include file="inc1.jsp" %> -- if file is jsp code , remember < % %>
include in BODY
< jsp:include page="hello.htm" />
ASP
<!--#include file=abc.asp-->
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言