<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
<title>天气预报查询</title>
<link rel="stylesheet" href="http://cache.amap.com/lbs/static/main1119.css"/>
<style type="text/css">
#weather {
height: 180px;
background-color: #fff;
padding-left: 10px;
padding-right: 10px;
position: absolute;
bottom: 20px;
font-size: 12px;
right: 10px;
border-radius: 3px;
line-height: 20px;
border: 1px solid #ccc;
}
.weather{
width: 60px;
padding-left: 8px;
高德天气预报
最新推荐文章于 2024-08-12 03:26:27 发布
这篇博客展示了如何利用高德地图API获取指定地区的实时天气和未来四天的天气预报。通过JavaScript代码,实现了在网页上展示天气信息,包括城市名、天气状况、温度、风向、风力等,并在鼠标悬停时显示信息窗口。
摘要由CSDN通过智能技术生成