css的cal(),CSS3 Calendar

CSS

语言:

CSSSCSS

确定

@import url(http://fonts.googleapis.com/css?family=Roboto:400,300,100,500,700);

body {

margin: 0 auto;

padding: 0;

width: 600px;

font-family: 'Roboto', sans-serif;

font-weight: 400;

background: #1abc9c;

}

#cover {

height: 598px;

position: relative;

background: #1abc9c;

}

.calendar {

width: 300px;

height: 400px;

margin: 0 auto;

margin-top: 20px;

border: 5px solid #3d3d3d;

border-radius: 20px;

background: #fff;

box-shadow: 0 10px 0 0 #16a085;

}

.calendar > .top {

width: 100%;

height: 60px;

border-bottom: 5px solid #3d3d3d;

background: #b9b9b9;

border-top-right-radius: 15px;

border-top-left-radius: 15px;

}

.calendar > .top > ul {

list-style: none;

width: 100%;

margin: 0;

padding: 0;

line-height: 75px;

}

.calendar > .top > ul > li {

width: 20px;

height: 20px;

margin: 0 8px;

border: 5px solid #3d3d3d;

border-radius: 50%;

display: inline-block;

background: #1abc9c;

position: relative;

}

.calendar > .top > ul > li:after {

content: '';

width: 18px;

height: 60px;

background: #3d3d3d;

position: absolute;

margin: auto;

left: 0;

right: 0;

bottom: 1px;

border-radius: 15px;

}

.calendar > .day {

position: relative;

box-shadow: inset 0 19px 0 0 #fff, inset 0 20px 0 0 #a2a2a2, inset 0 39px 0 0 #fff, inset 0 40px 0 0 #a2a2a2, inset 0 59px 0 0 #fff, inset 0 60px 0 0 #a2a2a2, inset 0 79px 0 0 #fff, inset 0 80px 0 0 #a2a2a2, inset 0 99px 0 0 #fff, inset 0 100px 0 0 #a2a2a2, inset 0 119px 0 0 #fff, inset 0 120px 0 0 #a2a2a2, inset 0 139px 0 0 #fff, inset 0 140px 0 0 #a2a2a2, inset 0 159px 0 0 #fff, inset 0 160px 0 0 #a2a2a2, inset 0 179px 0 0 #fff, inset 0 180px 0 0 #a2a2a2, inset 0 199px 0 0 #fff, inset 0 200px 0 0 #a2a2a2, inset 0 219px 0 0 #fff, inset 0 220px 0 0 #a2a2a2, inset 0 239px 0 0 #fff, inset 0 240px 0 0 #a2a2a2, inset 0 259px 0 0 #fff, inset 0 260px 0 0 #a2a2a2, inset 0 279px 0 0 #fff, inset 0 280px 0 0 #a2a2a2, inset 0 299px 0 0 #fff, inset 0 300px 0 0 #a2a2a2, inset 0 319px 0 0 #fff, inset 0 320px 0 0 #a2a2a2;

}

.calendar > .day > h1 {

text-align: center;

line-height: 335px;

font-size: 200px;

margin: 0;

color: #3d3d3d;

text-shadow: 0 10px 0 #fff, 0 -10px 0 #fff, 10px 0 0 #fff, -10px 0 0 #fff;

}

.calendar > .day > span {

position: absolute;

margin: auto;

left: 0;

right: 0;

bottom: 16px;

color: #a2a2a2;

text-align: center;

font-weight: 700;

}

.site {

width: 300px;

height: 335px;

margin: 0 auto;

margin-top: 100px;

border: 5px solid #3d3d3d;

border-bottom-right-radius: 20px;

border-bottom-left-radius: 20px;

border-top-right-radius: 0;

border-top-left-radius: 0;

position: absolute;

margin: auto;

bottom: 0;

right: -80px;

transform: rotate(10deg);

-webkit-transform: rotate(10deg);

-moz-transform: rotate(10deg);

-o-transform: rotate(10deg);

-ms-transform: rotate(10deg);

background: #fff;

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值