DocumentTq历史查询 清除历史记录生活指数舒适度指数穿衣指数感冒指数运动指数旅游指数紫外线指..._js 气象地图">
当前位置:   article > 正文

html js获取天气预报,原生JS实现天气预报

js 气象地图

本文实例为大家分享了JS实现天气预报的具体代码,供大家参考,具体内容如下

HTML代码

content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">

Document

历史查询

清除历史记录

生活指数

舒适度指数

穿衣指数

感冒指数

运动指数

旅游指数

紫外线指数

洗车指数

空气污染扩散条件指数

CSS代码

* {

margin: 0;

padding: 0;

}

ul,li {

list-style: none;

}

body {

background-size: 120%;

color: white;

}

.search {

position: fixed;

width: 100%;

height: 0.5rem;

background-color: rgba(0,0,0,.0);

display: flex;

justify-content: space-between;

align-items: center;

}

#search_from {

width: 2.8rem;

height: 0.4rem;

position: relative;

}

.search > span {

width: 0.5rem;

font-size: 0.25rem;

line-height: 0.5rem;

text-align: center;

font-family: "Segoe UI Symbol";

color: white;

}

.search #search_from > input {

width: 2.8rem;

height: 0.4rem;

border-radius: 0.1rem;

text-indent: 0.1rem;

outline: none;

position: absolute;

border: none;

border-bottom: 0.01rem solid white;

background-color: rgba(255,255,255,.05);

color: white;

}

.search #search_from > input::-webkit-input-placeholder {

color: white;

}

.search > .search-btn {

width: 0.5rem;

position: relative;

}

.search > .search-btn > img {

width: 0.25rem;

position: absolute;

top: 50%;

left: 50%;

transform: translate(-50%,-50%);

}

.history {

height: 0.9rem;

overflow: auto;

background-color: rgba(255,255,255,.05);

transition-duration: 0.5s;

}

.historys {

margin-top: 0.8rem;

overflow: hidden;

}

.history .history-item {

display: flex;

height: 0.4rem;

border-bottom: 0.01rem dashed #cccccc;

align-items: center;

justify-content: space-evenly;

}

.history .history-item > .history-time {

font-size: 0.14rem;

}

.history .history-item > .history-city {

font-size: 0.18rem;

}

.history .la {

height: 0.3rem;

display: flex;

position: fixed;

top: 0.45rem;

width: 90%;

background-color: rgba(255,255,255,.0);

justify-content: space-between;

font-size: 0.16rem;

border-bottom: 0.01rem solid white;

margin: 0.1rem 0.2rem;

font-family: 幼圆;

line-height: 0.3rem;

}

.history .la > span {

color: white;

}

.history .la > img {

width: 0.2rem;

height: 0.2rem;

padding: 0.03rem;

border: 0.01rem solid #cccccc;

border-radius: 0.05rem;

}

.clearbtn {

height: 0.3rem;

text-align: center;

text-decoration: underline;

font-size: 0.2rem;</

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Guff_9hys/article/detail/906652
推荐阅读
相关标签
  

闽ICP备14008679号