Re: [請益] IE/FX iframe 的background
※ 引述《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
→
05/25 12:28, , 1F
05/25 12:28, 1F
→
05/25 13:14, , 2F
05/25 13:14, 2F
→
05/25 13:18, , 3F
05/25 13:18, 3F