DocumentTq历史查询 清除历史记录生活指数舒适度指数穿衣指数感冒指数运动指数旅游指数紫外线指..._js 气象地图">
赞
踩
本文实例为大家分享了JS实现天气预报的具体代码,供大家参考,具体内容如下
HTML代码
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
DocumentTq
历史查询
清除历史记录
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;</
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。