html calendar控件,HTML5 自定义日历控件

ys_datetime_selector.css.ys-datetime-selector{

position:fixed;

left:0;

right:0;

top:0;

bottom:0;

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

z-index: 999;

}

.ys-datetime-selector.display-hide{

transform: translate3d(100%,0,0);

-webkit-transform: translate3d(100%,0,0);

visibility: hidden;

}

.ys-datetime-selector .ys-datetime-selector-content{

position:absolute;

left:0;

right:0;

bottom:0;

background-color:#fff;

}

/* ======================================== ys-datetime-operation-bar ======================================== */

.ys-datetime-selector .ys-datetime-selector-content .ys-datetime-operation-bar{

height:45px;

line-height: 44px;

border-bottom:1px solid #e0e0e0;

text-align: center;

}

.ys-datetime-selector .ys-datetime-selector-content .ys-datetime-operation-bar span{

color:#333;

font-size:16px;

}

.ys-datetime-selector .ys-datetime-selector-content .ys-datetime-operation-bar a{

position:absolute;

top:0;

bottom:0;

padding:0 15px;

font-size:16px;

color:#4e9dcf;

}

.ys-datetime-selector .ys-datetime-selector-content .ys-datetime-operation-bar a.ys-datetime-cancel-btn{left:0;}

.ys-datetime-selector .ys-datetime-selector-content .ys-datetime-operation-bar a.ys-datetime-ok-btn{right:0;}

/* ======================================== ys-datetime-blocks ======================================== */

.ys-datetime-selector .ys-datetime-selector-content .ys-datetime-blocks{

position:relative;

height:170px;

-webkit-mask-box-p_w_picpath: -webkit-linear-gradient(top, rgba(0,0,0,0.2), rgba(0,0,0,0.4) 20%,rgba(0,0,0,0.6) 39%,white 40%, white 60%,rgba(0,0,0,0.6) 41%, rgba(0,0,0,0.4) 80%,rgba(0,0,0,0.2));

-webkit-mask-box-p_w_picpath: linear-gradient(to top, rgba(0,0,0,0.2), rgba(0,0,0,0.2), rgba(0,0,0,0.4) 20%,rgba(0,0,0,0.6) 39%,white 40%, white 60%,rgba(0,0,0,0.6) 41%, rgba(0,0,0,0.4) 80%,rgba(0,0,0,0.2));

}

.ys-datetime-selector .ys-datetime-selector-content .ys-datetime-blocks:before{

content:"";

position:absolute;

left:0;

right:0;

height:1px;

background-color:#cdcdcd;

top:68px;

}

.ys-datetime-selector .ys-datetime-selector-content .ys-datetime-blocks:after{

content:"";

position:absolute;

left:0;

right:0;

height:1px;

background-color:#cdcdcd;

bottom:68px;

}

.ys-datetime-selector .ys-datetime-selector-content .ys-datetime-blocks>div{

width:33.333%;

float:left;

}

.ys-datetime-selector .ys-datetime-selector-content .ys-datetime-blocks>div.block-hide{

display:none;

}

.ys-datetime-selector .ys-datetime-selector-content .ys-datetime-blocks>div.width-50{

width:50%;

}

.ys-datetime-selector .ys-datetime-selector-content .ys-datetime-blocks>div.width-100{

width:100%;

}

.ys-datetime-selector .ys-datetime-selector-content .ys-datetime-blocks .swiper-container{

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值