|
藍森林 http://www.lslnet.com 2006年8月25日 8:28
能否改變IFRAME中的背景色?
有沒有權限? |
設定被<Iframe>過來的頁面的bgcolor不就OK了? |
那個頁面如果是別處引用的呢? |
!-_-
沒用過<IFrame>?
[html]
<iframe src="http://bbs.blueidea.com/"></iframe>
[/html] |
就像你這個iframe,怎麼改變裡面http://bbs.blueidea.com/頁顯示的背景色?
|
我只改過IFRAME的背景色,不過是在IFRAME那個頁面來修改的。
這個論壇很有特色,我很喜歡,特別是我的配色這個功能,強! |
網頁背景色不會改嗎?
修改〉頁面屬性〉背景色 |
要清楚這一點:在<iframe>裡,從滾動條往裡到頁面內容都屬於被引用的頁面。這個頁面的所有屬性在<iframe>裡是不能改的!只有找到被引用頁面的源文件才能改。在<iframe>裡,只能改外邊框線的屬性。例如:
[html]
<div id="Layer2" style="position:absolute; FILTER:Alpha(opacity=50); width:513px; height:370px; z-index:2; left: 267px; top: 2px; background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 1px none #000000;">
<div align="right">
<iframe name="mainFrame" width="500" height="370" marginwidth="1" marginheight="1" border="0" frameborder="0" src="http://www.speedsurf.to/faramita/a72.html" style="border-top:3 blue solid"></iframe>
</div>
</div>
<div id="Layer2" style="position:absolute; FILTER:Alpha(opacity=50); width:513px; height:370px; z-index:2; left: 267px; top: 397px; background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 1px none #000000;">
<div align="right">
<iframe name="mainFrame" width="500" height="370" marginwidth="1" marginheight="1" border="0" frameborder="0" src="http://www.speedsurf.to/faramita/a72.html" STYLE="border: solid green 10px;"></iframe>
</div>
</div>
<br>
<div id="Layer2" style="position:absolute; FILTER:Alpha(opacity=50); width:513px; height:370px; z-index:2; left: 267px; top: 797px; background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 1px none #000000;">
<div align="right">
<iframe name="mainFrame" width="500" height="370" marginwidth="1" marginheight="1" border="0" frameborder="0" src="http://www.speedsurf.to/faramita/a72.html" STYLE="border-bottom: #999999 10px solid;border-top: #ef0911 1px solid;border-left: #001199 1px solid;border-right: #09defe 1px solid;"></iframe>
</div>
</div>
<br><br><br>
[/html] |
|