iframe透明的解决办法
通常 iframe底色会是白色,在不同浏览器下可能会有不同的颜色
如果主页面有一个整体的背景色或者背景图片的时候
iframe区域便会出现一个白色块,与主体页面不协调,这就需要iframe透明
通过google搜索iframe透明找到了解决办法
<iframe src=”this.html” allowtransparency=”true” style=”background-color=transparent” title=”test” frameborder=”0″ width=”470″ height=”308″ scrolling=”no”></iframe>
当然前提是iframe页面中没有设置颜色.
发表评论




