作者tomin (for pete's sake)
看板Web_Design
標題Re: [請益] IE/FX iframe 的background
時間Mon May 25 11:37:53 2009
※ 引述《zeqw (Q_Q)》之銘言:
: 假設有一個網頁原始碼如下:
: <html>
: <head>
: <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
: <title>test</title>
: </head>
: <body background="Images/bg003.jpg">
: <iframe name=many allowtransparency="true" marginwidth=0
: marginheight=0 scrolling=no width=310 height=290 src="" frameborder=1>
: </iframe></td>
: </body>
: </html>
: 而這樣的網頁在FX底下看,假設底圖是風景圖片,那麼iframe內也會是風景圖片
: 而在IE底下看iframe內則是全空白的,
: 請問要如何統一呢?(讓IE的空iframe也是會出現底圖bg003.jpg)
iframe那一頁要加上
<style type="text/css">
BODY {background:none transparent;}
</style>
比如說src="test2.html"
test2.html裡要加上上述語法
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 122.116.40.183
→ zeqw:謝謝,因為原iframe是沒東西 是動態產生的.. 也許不能加? 05/25 12:28
→ LPH66:也可以啊 只要在產生時加上這個CSS就好了 05/25 13:14
→ tomin:都共同套用同一個CSS(檔)啊 05/25 13:18