如何让一个iframe 背景透明?
来源:互联网 发布:人工智能 公司 top100 编辑:程序博客网 时间:2024/06/09 18:11
网上查到让一个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得到这个页面
不过这样是不是跨域了!
0 0
- 如何让一个iframe 背景透明?
- 如何让一个IFRAME调用页面的背景为透明?
- 如何让一个IFRAME调用页面的背景为透明
- 如何让iframe的背景透明
- 如何让iframe的背景透明
- 如何让iframe透明
- 关于让iframe背景透明的方法
- 如何让框架背景透明
- 如何让Activity背景透明
- IE下如何设置iframe背景透明
- 如何让网页背景透明 -- 嵌套页面iframe
- 如何让iframe背景色透明
- 如何让iframe背景色透明
- 让IFRAME框架内的文档的背景透明
- 让IFRAME框架内的文档的背景透明
- IFrame透明背景
- iframe透明背景
- IFRAME的背景透明
- wap1.1和wap2.0的比较
- Linux安装Redis操作说明
- 为何sendRedirect之前使用request.setAttribute不起作用?
- 微信视频全屏播放--测试
- 从javascript异步编程特点理解node服务器的I/O密集型优势
- 如何让一个iframe 背景透明?
- 全面了解setjmp和longjmp
- WCSS输入扩展
- socket发送和接受数据
- jquery 常见库插件总结
- Beam Search Algorithm (Draft by Andrew Jungwirth)
- 在J2ME和WAP中实现电话呼叫功能
- python学习-04
- configure: error: Your operating system's lex is insufficient to compile libpcap.