|
|奔日网技术学堂欢迎您
tech.8BR.NET|
IFRAME里加上属性:allowtransparency="true" IFRAME的SRC网页加上:
1). 打開您的主網頁,複製程式碼到 <body></body> 之中: <IFRAME src="網頁二.htm" /*iframe 內的網頁*/ name="frame" /*iframe 名稱*/ width="300" /*寬度(pixel)*/ height="300" /*高度(pixel)*/ style="position:absolute; left:255; /*位置(從左邊算起)*/ top:100; /*位置(從上面算起)*/ scrolling=choice /*捲軸*/ frameborder="0" /*邊框*/ allowtransparency="true"> </IFRAME> 要確定絕對不能刪去 "allowtransparency="true" 這一行喔!
2). 打開您 iframe 裡面的網頁,複製程式碼到 <head></head> 之中: <style type="text/css"> <!-- BODY {background:none transparent;color:#000000}--> </style>
編輯內容:
不需修改,但如果 iframe 裡的網頁裡有先預設背景圖/背景顏色,要先把該設定刪除~
|点此可收藏|或发表对本篇的评论
|