안녕 얘들 아 나는 jQuery에서 datepicker의 일관성에 몇 가지 문제가 있습니다. 이미지가 첨부되었습니다. browser inconsistency IE/ChromeDatepicker 불일치
는 그래서 문제는 화살표 '<'와 '>'크롬에 표시된 ... 이상한 일이 IE에 난 빈 공간을 클릭하면 때문이다 IE도 볼 수 없습니다되는 곳 화살표가 정상적으로 작동해야합니다. 그래서 IE에서 아이콘을 표시하고 싶습니다.
이것은 내 jquery 사용자 지정 스타일 구현입니다.
$(".action-calendar").datepicker({
nextText: " ",
prevText: " ",
beforeShowDay: function (date) {
var result = [false, '', null]; // dates not clickable because beforeShowDay() is called on each date click
var dayEvents = $.grep(eventsList, function (event) {
return event.Date.valueOf() === date.valueOf();
});
if (dayEvents.length) {
var text = $.map(dayEvents, function (a) {
return a.Title;
}).join("<br>");
result = [false, "highlight", text];
}
return result;
},
onChangeMonthYear: function (year, month, inst) {
// re-initialize tooltips because when changing month/year the calendar is destroyed and rebuilt
// (beforeShowDay is called after every month/year change)
setTimeout(function() {
applyTooltips();
}, 300);
},
});
applyTooltips(); // initialize tooltips
은 BTW 내가
extText: " ",
prevText: " ",
는 아무것도 표시되지 않습니다에 텍스트를 추가하는 시도했습니다. 감사합니다.
P. IE11을 사용 중이며 브라우저 콘솔 오류, 정보, 경고 등이 없습니다.
저는 IE 11을 사용하고 있습니다. – Remus
좋습니다. IE 11은 아이콘 글꼴을 완벽하게 처리 할 수 있습니다. 개발자 콘솔에 오류나 경고가 표시되면 살펴 보았습니까? – jbin
예. 나는 콘솔에서 지적했다. 또한 .cshtml : jquery.dataTables.min.css .... jquery-1.11.3.min.js 및 jquery-ui.min.js에로드했습니다. – Remus