iframe透明属性为:allowtransparency
当allowtransparency为true时iframe里的颜色跟父文档的颜色相同
注意:iframe里的文档的body style为:background-color:transparent
Internet Explorer 5.5 以上版本允许你设置透明属性,通过设置是否可被透明,你可以改变背景的颜色
<iframe src="target.html" allowtransparency="true" frameborder="0" width="480" height="400" scrolling="no"></iframe>
target.html文档的body style应该为background-color:transparent