My graduation project is to build an educational management system website, but it is stuck in the timetable display.
This is my database field design. I mainly don’t know how to display it on the front end.
For example, the compilation technology course is taught in periods 3 to 5 on Tuesday, and then the compilation technology course will be displayed in periods 3 to 5 in this table, but the general table shows one row of tr, so I don’t know. How can I display this to three vertical lines (sections 3 to 5). .
The function oftime
里面每一节课程的end - start
计算出具体rowspan
的值设置在table
Just the corresponding courserowspan
is to set the number of rows occupied by an elementFind a plugin to merge the same consecutive rows of columns
Pay attention to learning the table tag, td has colspan and rowspan attributes, which can achieve the effect you mentioned