使 iframe 在插入的面背景透明
2011-01-25 21:48
253 查看
网上查到让一个iframe 背景透明的办法:
首先在<body
style="background-color:transparent"></body>
然后:
<iframe
src="你的地址" allowtransparency="true"
style="background-color:transparent"
title="test" frameborder="0"
width="470" height="308" scrolling="no"></iframe>
问题在于这里src里的文件不再我本机上,,我没办法设置它的<body
style="background-color:transparent"></body>
如下,我要引用天气预报:
<iframe src="http://weather.265.com/weather.htm" width="168" height="54"
frameborder="no" border="0" marginwidth="0" marginheight="0"
scrolling="no"></iframe>
我的底色是蓝的,可这个底色是白的http://weather.265.com/weather.htm
这样该怎么办?
那就不要用iframe实现,你先把这个页面得到它的内部,然后再显示在页面里,
可以用ajax得到这个页面
首先在<body
style="background-color:transparent"></body>
然后:
<iframe
src="你的地址" allowtransparency="true"
style="background-color:transparent"
title="test" frameborder="0"
width="470" height="308" scrolling="no"></iframe>
问题在于这里src里的文件不再我本机上,,我没办法设置它的<body
style="background-color:transparent"></body>
如下,我要引用天气预报:
<iframe src="http://weather.265.com/weather.htm" width="168" height="54"
frameborder="no" border="0" marginwidth="0" marginheight="0"
scrolling="no"></iframe>
我的底色是蓝的,可这个底色是白的http://weather.265.com/weather.htm
这样该怎么办?
那就不要用iframe实现,你先把这个页面得到它的内部,然后再显示在页面里,
可以用ajax得到这个页面
相关文章推荐
- 为IE的iframe元素应用背景或透明背景
- 插入透明背景Flash的HTML代码
- 让IFRAME框架内的文档的背景透明
- 设置iframe背景透明
- 插入透明背景Flash的HTML代码
- 如何让iframe的背景透明
- iframe中设置调用的文件背景透明
- iframe transparent透明背景方法
- IE浏览器中iframe背景透明
- 如何在ie6/ie7/ie8中实现iframe背景透明
- iframe设置背景透明(allowTransparency属性)
- 让 iframe 背景透明的属性
- IFRAME的背景透明
- IE6下滤镜插入透明PNG背景,解决失焦问题
- iframe 背景透明问题
- iframe 背景透明
- iframe背景透明问题
- ie下iframe设置背景透明
- 设置iframe框架背景透明
- 让IFRAME框架内的文档的背景透明