我的毕业设计是做一个教务管理系统网站,但是卡在了课表展示这里了。
这是我的数据库字段设计,我主要是不知道前端怎么展示出来。比如编译技术这门课是周二第3到5节上课,然后在这个表格里面第3到5节里面就会显示编译技术这门课,但是一般表格是tr显示一行,我就不知道怎么把这个显示到纵向三行(3到5节)了。。
小伙看你根骨奇佳,潜力无限,来学PHP伐。
time里面每一节课程的 end - start计算出具体 rowspan的值设置在tableJust the corresponding course
time
end - start
rowspan
table
rowspan is to set the number of rows occupied by an element
Find 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
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