Zi 字媒體
2017-07-25T20:27:27+00:00
讓iframe的高度能隨內容自動調整 [並肩作戰/並肩作站 ~ 偷網站內容]
資料來源:http://17joweb.com/blog/13-know-how-notes/237-iframe
00.HTML iframe 語法
01.先在要嵌入的內頁中加入iframe的語法。(Ex︰A.html)
02-1.先在要嵌入的內頁中加入iframe的語法。(Ex︰A.html)
function resize() { parent.document.getElementById("mainframe").height=document.body.scrollHeight; //將子頁面高度傳到父頁面框架}
02-2.並在body(Ex︰B.html)裡加入︰
寫了
5860316篇文章,獲得
23313次喜歡