iframe在IE中的透明问题与allowTransparency属性
使用iframe调用的页面,在IE下(不包括IE9)会以白色背景显示(被调用页面没有设置背景颜色,以及系统的背景颜色默认为白色),如何让其透明?
网络上已经有很多答案:
在iframe标签中加上 allowTransparency="true" 属性
即:
<iframe src="iframe.html" width="600px" height="500px" allowtransparency="true" scrolling="no" frameborder="0"></iframe>
<iframe src="iframe.html" width="600px" height="500px" allowtransparency scrolling="no" frameborder="0"></iframe>