我想让这个日期时间选择器占据整个屏幕,并更改一些部分的样式,例如每个时间段和日期的大小。我从https://reactdatepicker.com/#example-default获取了这个组件,它的github存储库是https://github.com/Hacker0x01/react-datepicker。任何帮助都将不胜感激!
DatePicker
属性calendarClassName="rasta-stripes"
定义了一个自定义类名。类名rasta-stripes
的定义如下:.rasta-stripes {
.react-datepicker__week:nth-child(3n + 1) {
background-color: #215005;
}
.react-datepicker__week:nth-child(3n + 2) {
background-color: #eea429;
}
.react-datepicker__week:nth-child(3n + 3) {
background-color: #a82a15;
}
}