怎样利用iframe让自己的网页可以显示天气


本文摘自PHP中文网,作者php中世界最好的语言,侵删。

这次给大家带来怎样利用iframe让自己的网页可以显示天气,用iframe让自己的网页可以显示天气的注意事项有哪些,下面就是实战案例,一起来看一下。

css:

代码如下:

1

2

3

4

5

6

*{margin:0;padding:0;list-style-type:none;}

a,img{border:0;}

body{font:12px/180% Arial, Helvetica, sans-serif, "新宋体";}

/* demo */

.demo{width:800px;margin:0 auto;}

.demo div{margin:40px 0 0 0;}

html:

代码如下:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

<div class="demo">

<div>

<iframe name="weather_inc" src="http://i.tianqi.com/index.php?c=code&id=2&num=5" width="650" height="70" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>

</div>

<div>

<iframe name="weather_inc" src="http://i.tianqi.com/index.php?c=code&id=7" style="border:solid 1px red" width="225" height="90" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>

</div>

<div>

<iframe name="weather_inc" src="http://i.tianqi.com/index.php?c=code&id=9" width="800" height="60" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>

</div>

<div>

<iframe name="weather_inc" src="http://i.tianqi.com/index.php?c=code&id=11" width="500" height="15" frameborder="0"></iframe>

</div>

<div>

<iframe name="weather_inc" src="http://i.tianqi.com/index.php?c=code&id=13" width="650" height="221" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>

</div>

<div>

<iframe name="weather_inc" src="http://i.tianqi.com/index.php?c=code&id=19" width="800" height="120" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>

</div>

</div>

相信看了这些案例你已经掌握了方法,更多精彩请关注php中文网其它相关文章!

相关阅读:

在HTML的列表中,dl(dt,dd)、ul(li)、ol(li) 有什么不同

HTML的head头标签有哪些用法

怎样解决在html中竖列文字竖列显示不全的问题

以上就是怎样利用iframe让自己的网页可以显示天气的详细内容,更多文章请关注木庄网络博客

相关阅读 >>

怎样做出在网页中弹出qq临时对话框

iframe的子页面怎样操作父页屏蔽页面弹出层效果

jquery 如何判断iframe是否加载完成

网页设计内容有什么

html怎么打开一个新的网页

怎样实现手机自适应网页的大小

怎样在html网页中使用bootstrap框架

怎样利用iframe让自己的网页可以显示天气

在网页中创建表单的目的是什么?

layui打开的layer的iframe窗口怎么关闭

更多相关阅读请进入《iframe》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...