码迷,mamicode.com
首页 > 其他好文 > 详细

伪元素改变date类型input框的默认样式实例页面

时间:2015-06-16 19:12:08      阅读:501      评论:0      收藏:0      [点我收藏+]

标签:

CSS代码:
::-webkit-datetime-edit { padding: 1px; background: url(/study/image/selection.gif); }
::-webkit-datetime-edit-fields-wrapper { background-color: #eee; }
::-webkit-datetime-edit-text { color: #4D90FE; padding: 0 .3em; }
::-webkit-datetime-edit-year-field { color: purple; }
::-webkit-datetime-edit-month-field { color: blue; }
::-webkit-datetime-edit-day-field { color: green; }
::-webkit-inner-spin-button { visibility: hidden; }
::-webkit-calendar-picker-indicator {
    border: 1px solid #ccc;
    border-radius: 2px;
    box-shadow: inset 0 1px #fff, 0 1px #eee;
    background-color: #eee;
    background-image: -webkit-linear-gradient(top, #f0f0f0, #e6e6e6);
    color: #666;
}
HTML代码:
<input type="date" />

转自http://www.zhangxinxu.com/study/201306/pseudo-elements-to-style-type-date.html

伪元素改变date类型input框的默认样式实例页面

标签:

原文地址:http://www.cnblogs.com/zhongfufen/p/4581318.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!