天气选择页面html,CSS3 天气预报界面组件

CSS

语言:

CSSSCSS

确定

@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,400,700);

@import url(https://cdnjs.cloudflare.com/ajax/libs/weather-icons/1.2/css/weather-icons.min.css);

body {

background: linear-gradient(90deg, #7474BF 10%, #348AC7 90%);

}

#weather_wrapper {

width: 400px;

margin: 100px auto;

}

.weatherCard {

width: 400px;

height: 200px;

font-family: 'Open Sans';

position: relative;

}

.currentTemp {

width: 220px;

height: 200px;

background: rgb(41, 41, 41);

position: absolute;

top: 0;

left: 0;

}

.currentWeather {

width: 180px;

height: 200px;

background: rgb(237, 237, 237);

margin: 0;

position: absolute;

top: 0;

right: 0;

}

.temp {

font-size: 80px;

text-align: center;

display: block;

font-weight: 300;

color: rgb(255, 255, 255);

padding: 20px 0 0;

}

.location {

color: rgb(255, 255, 255);

text-align: center;

text-transform: uppercase;

font-weight: 700;

font-size: 30px;

display: block;

}

.conditions {

font-family: weathericons;

font-size: 80px;

display: block;

padding: 20px 0 0;

text-align: center;

}

.info {

width: 180px;

height: 50px;

position: absolute;

bottom: 0;

right: 0;

background: rgb(42, 178, 234);

font-weight: 700;

color: rgb(255, 255, 255);

text-align: center;

}

.rain {

width: 50%;

position: absolute;

left: 10px;

word-spacing: 60px;

top: 3px;

}

.rain::before {

display: block;

content: '\f04e';

font-family: weathericons;

font-size: 40px;

left: 6px;

top: -4px;

position: absolute;

}

.wind {

width: 50%;

right: -10px;

position: absolute;

word-spacing: 60px;

top: 3px;

}

.wind::before {

display: block;

content: '\f050';

font-family: weathericons;

font-size: 25px;

left: -10px;

position: absolute;

top: 5px;

}

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值