天气预报效果

																																																																																																																																																																																																																																											@[TOC](这里写自定义目录标题)

前端项目添加天气预报

如何在项目中添加天气预报,API地址如:
http://tianqiapi.com/.

代码实例

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>	</title>
	<style>	
		div{
			border:1px solid pink;
		}
	</style>
</head>
<body>
	<h3>跳转到插件:<a href="http://tianqiapi.com/">http://tianqiapi.com/</a></h3>
	<h4>示例如下:</h4>

	<div><iframe scrolling="no" src="https://tianqiapi.com/api.php?style=tx&skin=pitaya" frameborder="0" width="100%" height="30" allowtransparency="true"></iframe></div>
	<div><iframe scrolling="no" src="https://www.tianqiapi.com/js/1001.php?skin=pitaya" frameborder="0" width="100%" height="30" allowtransparency="true"></iframe></div>
	<div><iframe scrolling="no" src="https://tianqiapi.com/api.php?style=tw&skin=pitaya" frameborder="0" width="300" height="500" allowtransparency="true"></iframe></div>
	<div><iframe scrolling="no" src="https://tianqiapi.com/api.php?style=tq&skin=pitaya" frameborder="0" width="100%" height="25" allowtransparency="true"></iframe></div>
	<div><iframe scrolling="no" src="https://tianqiapi.com/api.php?style=tg&skin=pitaya" frameborder="0" width="470" height="60" allowtransparency="true"></iframe></div>
	<div><iframe scrolling="no" src="https://tianqiapi.com/api.php?style=tm&skin=pitaya" frameborder="0" width="270" height="24" allowtransparency="true"></iframe></div>
	<div><iframe scrolling="no" src="https://tianqiapi.com/api.php?style=tb&skin=pitaya" frameborder="0" width="350" height="24" allowtransparency="true"></iframe></div>
	<div><iframe scrolling="no" src="https://tianqiapi.com/api.php?style=ts&skin=pitaya" frameborder="0" width="325" height="220" allowtransparency="true"></iframe></div>
	<div><iframe scrolling="no" src="https://tianqiapi.com/api.php?style=tf&skin=pitaya" frameborder="0" width="160" height="24" allowtransparency="true"></iframe></div>
	<div><iframe scrolling="no" src="https://tianqiapi.com/api.php?style=ta&skin=pitaya" frameborder="0" width="260" height="24" allowtransparency="true"></iframe></div>
	<div><iframe scrolling="no" src="https://tianqiapi.com/api.php?style=tp&skin=pitaya" frameborder="0" width="160" height="260" allowtransparency="true"></iframe></div>
	<div><iframe scrolling="no" src="https://tianqiapi.com/api.php?style=tc&skin=pitaya" frameborder="0" width="350" height="24" allowtransparency="true"></iframe></div>

	<div><iframe scrolling="no" src="https://tianqiapi.com/api.php?style=tv&skin=pitaya" frameborder="0" width="255" height="25" allowtransparency="true"></iframe></div>
	<div><iframe scrolling="no" src="https://tianqiapi.com/api.php?style=te&skin=pitaya" frameborder="0" width="200" height="24" allowtransparency="true"></iframe></div>
	<div><iframe scrolling="no" src="https://tianqiapi.com/api.php?style=tk&skin=pitaya" frameborder="0" width="260" height="195" allowtransparency="true"></iframe></div>
	<div><iframe scrolling="no" src="https://tianqiapi.com/api.php?style=ti&skin=pitaya" frameborder="0" width="250" height="270" allowtransparency="true"></iframe></div>
	<div></div>
</body>
</html>

效果:

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值