public static void main(String[] args) {
DateTimeFormatter fmt = DateTimeFormatter.ofPattern("yyyy-MM-dd");
LocalDateTime date = LocalDateTime.now();
LocalDateTime firstday = date.with(TemporalAdjusters.firstDayOfMonth());
LocalDateTime lastDay = date.with(TemporalAdjusters.lastDayOfMonth());
System.out.println("firstday:" + firstday.format(fmt));
System.out.println("lastDay:" + lastDay.format(fmt));
}
table 设置表格字体
<style>
.layui-table-cell {
height:auto;
font-size: 15px;
letter-spacing:2px;
overflow:visible;
text-overflow:inherit;
white-space:normal;
word-break:break-all
}
</style>
overflow-x: hidden;
overflow-y: auto; 修改layui.css