div+css实现天气预报widget组件效果代码

代码语言:html

所属分类:布局界面

代码描述:div+css实现天气预报widget组件效果代码

代码标签: div css 天气 预报 widget 组件

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">

  
  
  
  
<style>
* {
  margin: 0px;
  padding: 0px;
}

a {
  color: #fff;
}

.credits {
  color: rgba(255,255,255,0.8);
    text-shadow: 0px 3px 0px rgba(0,0,0,0.4;)
}

body {
 background:url('//repo.bfw.wiki/bfwrepo/image/603da313cc16a.png') no-repeat;
  background-size: 100% auto;
  font-family: 'helvetica', sans-serif;
}

article {
  width: 220px;
  height: 80px;
  display: block;
  position: relative;
  margin: 80px auto;
  background: #fafafa;
  border-radius: 0px 3px 3px 0px;
  box-shadow: 0px 10px 0px     rgba(0,0,0,0.2);
}

.date {
  background: #CF575F;
  height: 80px;
  width: 80px;
  border-radius: 3px 0px 0px 3px;
  position: relative;
  left: -80px;
  box-shadow: inset 0px 1px 0px rgba(255,255,255,0.3),0px 10px 0px rgba(0,0,0,0.2);
}

.date span {
  display: block;
   text-align: center;
}

.month {
  color: rgba(255,255,255,0.4);
  text-shadow: 0px 1px 0px rgba(0,0,0,0.2);
  font-size: 10pt;
  padding-left: 12px;
  padding-top: 25px;
  position: relative;
  top: 4px;
}

.day {
  color: #fff;
  text-shadow: 0px 1px .........完整代码请登录后点击上方下载按钮下载查看

网友评论0