这是原本的jquery-ui.css
.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span {
display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px;
}
上面的样式时间插件的月份没有显示出来
解决方法:
将上面的css替换成下面的css,就可以显示出选择月份的小三角形,解决思路是将span标签用css修饰为小三角形。
.ui-datepicker .ui-datepicker-prev span {
display: block;position:absolute;left: 50%;margin-left: -8px; top: 50%; margin-top: -8px;width:0;height:0;border-top:8px solid transparent;border-bottom:8px solid transparent;border-right:8px solid white;
}
.ui-datepicker .ui-datepicker-next span {
display: block;position:absolute;left: 50%;margin-left: -8px; top: 50%; margin-top: -8px;width:0;height:0;border-top:8px solid transparent;border-bottom:8px solid transparent;border-left:8px solid white;
}