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). .
小伙看你根骨奇佳,潛力無限,來學(xué)PHP伐。
time
里面每一節(jié)課程的 end - start
計算出具體 rowspan
的值設(shè)置在table
Just the corresponding course
rowspan
is to set the number of rows occupied by an element
Pay attention to learning the table tag, td has colspan and rowspan attributes, which can achieve the effect you mentioned