代码部分展示
学生列表
单独查看任意一名学生信息
学生详细信息
<table class="table table-hover table2" >
<caption>信息学院</caption>
<tr>
<th>学号</th>
<th>姓名</th>
<th>性别</th>
<th>年级</th>
<th>专业</th>
<th>班级</th>
<th>教育方式</th>
</tr>
<tr >
@if (empty($stu))
<h2 style="color: red;" align="center">!!!没有该学生信息</h2>
@else
<td >{{$stu['xh']}} </td>
<td>{{$stu['xingming']}}</td>
<td>{{$stu['xingbie']}}</td>
<td>{{$stu['nianji']}}</td>
<td>{{$stu['zhuanye']}}</td>
<td>{{$stu['banji']}}</td>
<td>{{$stu['xuexixingshi']}}</td>
@endif
</tr>
</table>
</div>
<style type="text/css">
.table2 th {
background-color:lightblue;
color:white;
}
.table2 td{
background-color: #ebf7fd;
}
</style>
运行效果展示