我正在使用 FullCalendar,我想做以下事情 - 请建议最好的方法:
- 我想将右标题重新定位到最左边
- 目前标题选项显示为内联 block 按钮。我想 它们显示为列表项。 onclick 功能应该 不受影响。
最佳答案
我自己想通了:
要添加一个新按钮只需要添加以下
$('.fc-header-right').append('一些按钮');
要以垂直列表显示格式将所有标题右侧按钮对齐到屏幕左侧,需要向 fullCalendar.css 添加样式
.fc-header-right{
position:absolute;
left:0 ;
}
并为按钮添加一个类并为该类添加样式
.fc-header-right-button {
position: relative;
display: table;
padding: 0 .6em;
overflow: hidden;
height: 1.9em;
line-height: 1.9em;
white-space: nowrap;
cursor: pointer;
margin-left: 50px;
}
关于jquery - 将完整日历右标题从按钮更改为列表项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15760012/